Skip to content

Instantly share code, notes, and snippets.

View alexjago's full-sized avatar

Alex Jago alexjago

View GitHub Profile
-- 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