Jump to content
Matthew Lancellotti

Update workflow without losing personal data

Recommended Posts

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 by Matthew Lancellotti

Share this post


Link to post

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.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...