noahcoad Posted September 7, 2014 Share Posted September 7, 2014 Is it possible to programmatically add a workflow to Alfred? Like copy the .alfredworkflow file to a specific location? I have a script external to Alfred that will be updating the info.plist file, adding keywords, and want Alfred to automatically pick up the file change and add the keywords. Link to comment
dfay Posted September 7, 2014 Share Posted September 7, 2014 See my reply to your other post - just have your external script do its work on workflow files themselves. Link to comment
noahcoad Posted September 8, 2014 Author Share Posted September 8, 2014 kickass, thanks!! Doesn't really answer if I can programmatically _add_ a new workflow, but this'll work, thanks again! Link to comment
rice.shawn Posted September 8, 2014 Share Posted September 8, 2014 A .alfredworkflow file is a .zip file that has been renamed. That's it. When you install a workflow into Alfred, it unzips the file and creates a folder with a UID that Alfred then picks up on. In that unzipped folder is everything that Alfred will read. There is no real way to programmatically create workflows. You can edit the info.plist file with a text editor, and those changes will appear each time you press save. This is just an expansion on dfay's answer. Link to comment
deanishe Posted September 27, 2014 Share Posted September 27, 2014 kickass, thanks!! Doesn't really answer if I can programmatically _add_ a new workflow, but this'll work, thanks again! If you create a directory under the directory Alfred keeps its workflow in and add a valid info.plist to it, you've created a workflow. Alfred will pick up any changes you make, but that usually takes a few seconds. 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