Matthew Lancellotti Posted October 27, 2014 Posted October 27, 2014 (edited) I am about to release my workflow, http://www.alfredforum.com/topic/5100-regex-run-and-save-regular-expressions/ , onto Packal. The workflow contains a file that contains user data. That is, users can save their own regexs for future use, and those saved regexs are saved in the file. Let's call it MyRegexFile.pl. When I release the next version of my workflow, how can I make it so that user data is not overwritten? * Perhaps there is a special Alfred way to handle updates * Perhaps there is a special Packal way to handle updates * Perhaps the file should be stored elsewhere on the user's computer * Perhaps the file contents should be stored in the keyword script filter itself Those are my ideas. I would like to find the right solution before releasing the new version. I would like the solution to be user friendly. Thanks! Edited October 29, 2014 by Matthew Lancellotti
vitor Posted October 27, 2014 Posted October 27, 2014 Option three is the correct one. Use ~/Library/Application Support/Alfred 2/Workflow Data/<your_workflow_bundle_id> as the directory to store that information. ~/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/<your_workflow_bundle_id> can also be used, for temporary data.
Florian Posted October 27, 2014 Posted October 27, 2014 you can find more details on the wiki documentation: https://github.com/shawnrice/alfred-documentation/wiki/Best-Practices-for-Workflows
Matthew Lancellotti Posted October 29, 2014 Author Posted October 29, 2014 Thanks! You can view my new Regex workflow at alfred forum: http://www.alfredforum.com/topic/5100-regex-run-and-save-regular-expressions/ full details and download link on my website: http://code.instructorium.com/regex packal: http://www.packal.org/workflow/regex Thanks for your help.
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