Created
September 27, 2023 06:48
-
-
Save alexjago/e595ecb03fab1d28cf8465bd386810a5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- AppleScript code for use in Automator | |
-- Requires qrencode from https://github.com/fukuchi/libqrencode/ | |
-- Workflow should receive URLs | |
-- (or plain text, if you want to be more general) | |
-- in any application. | |
-- Save as a service. | |
on run {input, parameters} | |
set the clipboard to (do shell script "echo '" & input & "' | /usr/local/bin/qrencode -s 10 -t PNG -o -" as «class PNGf» without altering line endings) | |
end run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment