CoFouts Posted October 14, 2019 Share Posted October 14, 2019 Hello Alfred Community, I was wondering if it is possible to use Alfred to do automation workflows like you can with Automator? I am actually trying to figure out if I can use Alfred to convert multiple PDFs to JPEGs. I am also wondering if I can put those said convert files into subfolders based on ”tags“ (matches in their file names). I am fairly new to Alfred and I do not know its limitations and I was hoping to get some insight from some veterans. Attached is the simple Automator workflow I currently use convert the PDFs to JPEGs. As for the folders I manually use shortcuts to put selected files into their subfolders. Best, CoFouts Link to comment
deanishe Posted October 14, 2019 Share Posted October 14, 2019 7 hours ago, CoFouts said: I was wondering if it is possible to use Alfred to do automation workflows like you can with Automator? Not directly, no. Alfred is a launcher, not an automation app. It is designed to run things when you tell it to, and its native integration with other applications generally doesn't extend beyond telling them to open things, and in some cases, allowing you to search for the thing to open (e.g. 1Password or browser bookmarks). Alfred can run your Automator workflow for you, though. Or an AppleScript (or shell script etc.). But essentially, if you want to do more than just open something, it's up to you to first write the script/Automator workflow to do what you want, and then tell Alfred how you'd like to run it (keyword/hotkey). CoFouts 1 Link to comment
rvnikita Posted June 21, 2022 Share Posted June 21, 2022 I have created bash script by using "magick convert" command to do that from Finder. You can find project here https://github.com/rvnikita/alfred_webp_to_jpeg Let me know if you need help with it. Link to comment
TomBenz Posted June 24, 2022 Share Posted June 24, 2022 On 6/22/2022 at 12:38 AM, rvnikita said: I have created bash script by using "magick convert" command to do that from Finder. You can find project here https://github.com/rvnikita/alfred_webp_to_jpeg Let me know if you need help with it. It uses specific folder as applicable in your machine. Should be updated to work on others. @vitor can guide on it. Link to comment
vitor Posted June 24, 2022 Share Posted June 24, 2022 The script should be included inside the Workflow. In its folder. In the Run Script, you use the relative path: /usr/bin/python3 ./2jpeg.py "${1}". TomBenz 1 Link to comment
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