Jump to content

Native QRCode Generator


Recommended Posts

Posted (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.2/QR.Code.alfredworkflow

 

GitHub

 

https://github.com/TorreyBetts/Alfred-QRCode

Edited by Torrey
Updating for v1.0.2
Link to comment

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!

Link to comment
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.

Link to comment
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!

Link to comment
  • 2 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...