Jump to content
jdfwarrior

Migrate Alfred Settings [Searching for testers]

Recommended Posts

Edited 3/1/2013:

 

The idea behind this workflow is to migrate settings from Alfred 1 to Alfred 2. I volunteered to do this as a workflow so that Andrew could finish other things and so we wouldn't have a button in the Alfred prefs that was used once and then just a waste of space. This way it can be used to migrate settings then just delete the workflow. Backups of the original settings are made so you don't have to worry about losing anything. 

 

Includes:

Migrate Alfred 1 Custom Searches to Alfred 2

Migrate Alfred 1 Snippets to Alfred 2

 

If you try this workflow and have success or failure either way, please post so that I know and can attempt to make this as resilient as possible.

 

Thanks

 

Download

Share this post


Link to post

Worked perfectly for my two simple intranet searches David, I think this will be useful for a number of users.

 

(Really looking forward to migrated workflows, but I’m having fun migrating most of mine by hand myself :)

Share this post


Link to post

Worked perfectly for my two simple intranet searches David, I think this will be useful for a number of users.

 

(Really looking forward to migrated workflows, but I’m having fun migrating most of mine by hand myself :)

 

Awesome, thanks for helping

Share this post


Link to post

My 14 custom searches came across fine, but none of my 6 snippets completed the journey.

 

Thanks for all your efforts moving us toward V2.

Share this post


Link to post

My 14 custom searches came across fine, but none of my 6 snippets completed the journey.

 

Thanks for all your efforts moving us toward V2.

 

Yeah I haven't done the snippets migration yet. I hope to get it done tonight and then start working on extension migration

Share this post


Link to post

Yeah I haven't done the snippets migration yet. I hope to get it done tonight and then start working on extension migration

Sorry, David. After I posted my results, I reread your original post and realized folks had asked for all those things to migrate, but your work to this point migrated custom searches. Didn't mean to rush you! :-)

Share this post


Link to post

I have my v2 set up with Syncing pointed to ~/Dropbox/Apps/AlfredApp

 

When I run migrate, I get "Error: Unable to locate v2 preferences"

Share this post


Link to post

I have my v2 set up with Syncing pointed to ~/Dropbox/Apps/AlfredApp

 

When I run migrate, I get "Error: Unable to locate v2 preferences"

 

You should really move your prefs out of this folder - Dropbox does funny things with permissions in this folder for API based iOS app. The latest builds of Alfred 2 don't allow you to use this folder.

 

This could be the issue.

Share this post


Link to post

Okay, I've moved it, but still get the same error.

 

Steps I took:

- clicked Set Sync Folder

- created a new folder called "Backups" (because I don't really want "Alfred" at the top of my dropbox, since dropbox is already cluttered enough by other apps that want the top level)

- created my AlfredApp folder in there

So this shows in Alfred now as: ~/Dropbox/Backups/AlfredApp

 

It asked me to restart Alfred, which I did.  I verified that Alfred had indeed copied the prefs file over to the new folder. Dropbox sync was very fast. 

 

Running "migrate" still gives me "Error: Unable to locate v2 preferences".

 

Would moving the Sync folder back to someplace outside of Dropbox make any difference? Isn't Dropbox just like any other local folder as far as the OS goes?   Is there an option in Alfred 2 to turn off sync and go back to the default Library location?

Share this post


Link to post

Okay, I've moved it, but still get the same error.

 

Steps I took:

- clicked Set Sync Folder

- created a new folder called "Backups" (because I don't really want "Alfred" at the top of my dropbox, since dropbox is already cluttered enough by other apps that want the top level)

- created my AlfredApp folder in there

So this shows in Alfred now as: ~/Dropbox/Backups/AlfredApp

 

It asked me to restart Alfred, which I did.  I verified that Alfred had indeed copied the prefs file over to the new folder. Dropbox sync was very fast. 

 

Running "migrate" still gives me "Error: Unable to locate v2 preferences".

 

Would moving the Sync folder back to someplace outside of Dropbox make any difference? Isn't Dropbox just like any other local folder as far as the OS goes?   Is there an option in Alfred 2 to turn off sync and go back to the default Library location?

I figured it out.

 

My Alfred 2 folder didn't have a "websearch" preferences plist file. In fact it didn't even have the /preferences/features/websearch folder at all. That's what was causing the migration script to fail.

 

 

To "fix" it, I simply created a dummy custom search, which then created the /preferences/features/websearch/prefs.plist file, and then the migrate script worked perfectly.

 

Hopefully that helps you refine the script, or refine Alfred itself.

Share this post


Link to post

Ok I didn't realize the websearch folder wasn't created by default. I don't think it gets created until you start tweaking the custom searches. That being said, I've made changes for the next iteration of the workflow that will check the existence of the web search folder, if it doesn't exist, it creates it and generates a prefs.plist with the default config so items can be added to it

Share this post


Link to post

In case you missed it, I updated the original post with a new download link. Includes snippet migrate and fixes a few issues with the custom search migrate (where the websearch folder didn't already exist)

Share this post


Link to post

I too, had to do what ChrisB did - even with the latest build from 6:47 pm yesterday.

 

As soon as I setup my first custom search - then ran the migrate function - it worked perfect.

 

Thanks!

Share this post


Link to post

I'm getting: "Error: Unable to locate v2 preferences" when migrating custom searches.

 

Snippets migration seems to run fine, but I don't use snippets.

 

I've checked and the prefs file is there.

Share this post


Link to post

I'm getting: "Error: Unable to locate v2 preferences" when migrating custom searches.

Snippets migration seems to run fine, but I don't use snippets.

I've checked and the prefs file is there.

There are MANY prefs files inside of Alfred now. Check my blog, dferg.us. I have the workflow available there as well as a suggested fix for that error that has worked for most users

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...