Torrey Posted May 30, 2021 Posted May 30, 2021 (edited) Summary All of the QR code generator workflows I've come across use a dependency, such as an external installation, embedded app, or web service. Given that MacOS can create QR codes natively, that's what I did with this workflow. Usage I've configured this to use two different keywords, qrc & qrp. The qrc keyword creates a QR code that copied to the clipboard. The other keyword, qrp does the same thing, except at the end it'll open the QR code in Preview to allow saving as an image/pdf. When using either qrc or qrp without a parameter this workflow will attempt to use text contained on the clipboard. This same flow is followed if you set a hotkey for the selection and nothing is selected. Download https://github.com/TorreyBetts/Alfred-QRCode/releases/download/v1.0.3/QR.Code.alfredworkflow GitHub https://github.com/TorreyBetts/Alfred-QRCode Edited October 19, 2022 by Torrey Updating for v1.0.3 xgo, milopus and giovanni 2 1
vitor Posted May 30, 2021 Posted May 30, 2021 Welcome to the forums, @Torrey. I’ve got to say, really well organised Workflow and code! It’s one of those that’s a pleasure to read. I’m considering deprecating my old old Workflow and point people to yours instead. A few suggestions: Consider filling the “About this Workflow” section. Down the line, someone will appreciate that the usage information is there, and it makes the Workflow look a bit more put together.Instead of requiring an argument, you could make it so if an argument isn’t given, it will use the clipboard contents.With a Hotkey Trigger, you could also add a way to make a QR code from selected text. Looking forward to see what you make next!
Torrey Posted May 30, 2021 Author Posted May 30, 2021 14 minutes ago, vitor said: Welcome to the forums, @Torrey. I’ve got to say, really well organised Workflow and code! It’s one of those that’s a pleasure to read. I’m considering deprecating my old old Workflow and point people to yours instead. A few suggestions: Consider filling the “About this Workflow” section. Down the line, someone will appreciate that the usage information is there, and it makes the Workflow look a bit more put together. Instead of requiring an argument, you could make it so if an argument isn’t given, it will use the clipboard contents. With a Hotkey Trigger, you could also add a way to make a QR code from selected text. Looking forward to see what you make next! Thanks vitor! I followed your first suggestion and filled out the "About this Workflow" section and re-uploaded the release, thanks for that reminder. Your other suggestions are awesome, thanks for sharing those. In the near future, these updates will be made. I come from a development background and have been like a kid in a candy store with Alfred and experimenting with each feature.
vitor Posted May 30, 2021 Posted May 30, 2021 10 minutes ago, Torrey said: In the near future, these updates will be made. If you want a language-agnostic way of informing users of updates, I’ve made OneUpdater. It’s designed to be easy to setup (and remove if you don’t want it anymore) and I’m available for questions. 11 minutes ago, Torrey said: have been like a kid in a candy store with Alfred and experimenting with each feature. I know the feeling!
Torrey Posted May 30, 2021 Author Posted May 30, 2021 This workflow has been updated to allow QR code creation with a selection hotkey. If either the selection contains nothing or the qrc/qrp keywords don't have a parameter, then the clipboard is used. Thanks @vitor for those ideas to improve the workflow! Mindstormer and vitor 2
Codenix Posted August 14, 2021 Posted August 14, 2021 @Torrey love this workflow, and the suggestions by @vitor are good ones. So cool to be able to copy a URL and do qrc to quickly make a QR Code for it then paste straight into an app. Nice work Torrey 1
Torrey Posted October 19, 2022 Author Posted October 19, 2022 @vitor thanks for the pull request adding support for universal actions. The source was added to the repository to make any possible future pull requests easier. vitor 1
milopus Posted October 26, 2022 Posted October 26, 2022 wow, this is a fantastic and useful workflow. Thanks! Torrey 1
KyoungJun Posted October 11, 2023 Posted October 11, 2023 Thanks @Torrey, It helped a lot for my productivity Torrey 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now