Jump to content

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

Link to comment

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

Link to comment

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

Link to comment

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! :-)

Link to comment

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.

Link to comment

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?

Link to comment

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.

Link to comment

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

Link to comment

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

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...