This file contains 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 |