Alan He Posted May 1 Share Posted May 1 (edited) Invoke the keyword ‘qr’, drag and drop a screenshot, and it will automatically read link. Select a QR code image file, invoke File Action, and select QR reader to read link. Dependency brew install zbar Alfred has permission of Screen Recording https://github.com/alanhg/alfred-workflows/tree/master/qr-reader Edited May 13 by Alan He Link to comment Share on other sites More sharing options...
alsbjer Posted May 1 Share Posted May 1 Nice idea! Although, I get "invalid QR code" every time I try it. Quote [15:36:58.950] Logging Started... [15:37:06.218] QR Reader[Keyword] Processing complete [15:37:06.224] QR Reader[Keyword] Passing output '' to Run Script [15:37:09.533] QR Reader[Run Script] Processing complete [15:37:09.536] QR Reader[Run Script] Passing output '/Users/markusal/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/cn.alanhe.qr-reader/screenshot.png ' to Transform [15:37:09.543] QR Reader[Transform] Processing complete [15:37:09.544] QR Reader[Transform] Passing output '/Users/markusal/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/cn.alanhe.qr-reader/screenshot.png' to Run Script [15:37:09.546] ERROR: QR Reader[Run Script] /Users/markusal/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/FBCB8442-A65C-4783-A780-DD25B864B34B: line 1: /usr/local/bin/zbarimg: No such file or directory [15:37:09.547] QR Reader[Run Script] Processing complete [15:37:09.548] QR Reader[Run Script] Passing output '' to Replace [15:37:09.549] QR Reader[Replace] Processing complete [15:37:09.551] QR Reader[Replace] Passing output '' to Transform [15:37:09.552] QR Reader[Transform] Processing complete [15:37:09.553] QR Reader[Transform] Passing output '' to Conditional [15:37:09.554] QR Reader[Conditional] Processing complete [15:37:09.554] QR Reader[Conditional] Passing output '' to Post Notification Link to comment Share on other sites More sharing options...
Alan He Posted May 1 Author Share Posted May 1 13 minutes ago, alsbjer said: Nice idea! Although, I get "invalid QR code" every time I try it. Have you not carefully read the README and dependencies here? If you haven't, the questions you're asking don't exist. Link to comment Share on other sites More sharing options...
alsbjer Posted May 2 Share Posted May 2 (edited) 15 hours ago, Alan He said: Have you not carefully read the README and dependencies here? If you haven't, the questions you're asking don't exist. I think I have, but I'm not fluent in these kinda things. I installed zbar without any errors and I have given alfred screenrecording permission. Maybe I missed something? Quote Warning: zbar 0.23.90_4 is already installed and up-to-date. Edited May 2 by alsbjer Link to comment Share on other sites More sharing options...
Alan He Posted May 2 Author Share Posted May 2 (edited) 5 hours ago, alsbjer said: I think I have, but I'm not fluent in these kinda things. I installed zbar without any errors and I have given alfred screenrecording permission. Maybe I missed something? as your debug. the root cause is zbar installation has some diff. you can type `which zbarimg` see what is path. I think your mac maybe is silicon. If so, you can download the latest workflow. I have fixed the issue. Edited May 2 by Alan He Link to comment Share on other sites More sharing options...
alsbjer Posted May 2 Share Posted May 2 6 hours ago, Alan He said: as your debug. the root cause is zbar installation has some diff. you can type `which zbarimg` see what is path. Thank you very much! That was the nudge I needed. Changed path in the workflow script - now it works flawlessly! Alan He 1 Link to comment Share on other sites More sharing options...
Alan He Posted May 7 Author Share Posted May 7 @vitor Looking forward to reviewing😃 Link to comment Share on other sites More sharing options...
vitor Posted May 7 Share Posted May 7 We’ve discussed this before. Continuous pinging won’t accelerate the review, I will get to it like I will get to them all, and there are other people waiting patiently for their own. New workflows, like any software, often require tweaks and that has been true of all your submissions so far. It’s good to let them marinate a bit so people who are interested can help you find early problems. Alan He 1 Link to comment Share on other sites More sharing options...
Alan He Posted May 7 Author Share Posted May 7 ok vitor 1 Link to comment Share on other sites More sharing options...
zeitlings Posted May 8 Share Posted May 8 There is no need for external dependencies, btw. See here. And here is the implementation: QResolve Alan He 1 Link to comment Share on other sites More sharing options...
Alan He Posted May 12 Author Share Posted May 12 On 5/9/2023 at 6:57 AM, zeitlings said: There is no need for external dependencies, btw. See here. And here is the implementation: QResolve you are right. I referenced your post and made some modifications to the error handling logic. But more importantly, it would be better to compile Swift code and output it, as this would significantly improve the execution speed. Thank you. Link to comment Share on other sites More sharing options...
vitor Posted May 12 Share Posted May 12 (edited) 2 hours ago, Alan He said: But more importantly, it would be better to compile Swift code and output it, as this would significantly improve the execution speed. But the binary isn’t signed and notarised, so now it won’t run at all on other people’s machines and can’t be in the Gallery (this is explained in the pinned post). That’s why not everyone compiles them in the first place. We’ve discussed these points before. Also, your version is only compiled for Intel so it wouldn’t run on Apple Silicon without Rosetta either. Edited May 12 by vitor Alan He 1 Link to comment Share on other sites More sharing options...
Alan He Posted May 13 Author Share Posted May 13 9 hours ago, vitor said: But the binary isn’t signed and notarised, so now it won’t run at all on other people’s machines and can’t be in the Gallery (this is explained in the pinned post). That’s why not everyone compiles them in the first place. We’ve discussed these points before. Also, your version is only compiled for Intel so it wouldn’t run on Apple Silicon without Rosetta either. You are right. OK, I give up on using the script and will just go with brew. Link to comment Share on other sites More sharing options...
vitor Posted 7 hours ago Share Posted 7 hours ago This will be live later today at https://alfred.app/workflows/alanhe/qr-reader/. Link to comment Share on other sites More sharing options...
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