Skip to content

Instantly share code, notes, and snippets.

@alexjago
Created September 27, 2023 06:48
Show Gist options
  • Save alexjago/e595ecb03fab1d28cf8465bd386810a5 to your computer and use it in GitHub Desktop.
Save alexjago/e595ecb03fab1d28cf8465bd386810a5 to your computer and use it in GitHub Desktop.
-- 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