Jump to content

Alfred 3 workflow compatibility


Recommended Posts

Hi,

 

I'm excited to see Alfred 3 out. However before upgrading, I wonder whether it's completely backward compatible with custom workflows. Has anyone seen problem with any workflows after upgrading to v3?

 

Thanks,
Cao

 

Link to post

I didn't have any problems with old workflows since the beginning of beta testing Alfred 3. However you might face

problems like external triggers that hardcoded to send to "Alfred 2" that just have to be changed to "Alfred 3".

Other than that there shouldn't be any problem :)

Link to post

Hi,

 

I'm excited to see Alfred 3 out. However before upgrading, I wonder whether it's completely backward compatible with custom workflows. Has anyone seen problem with any workflows after upgrading to v3?

 

Thanks,

Cao

 

 

Your workflows will be imported into Alfred 3, and should work perfectly smoothly right away. If you find a workflow that needs an update to work in Alfred 3, you may need to contact the workflow creator or pop a post in the relevant forum thread; Some may have references to Alfred 2 hard-coded that need to be updated.

Link to post

To see which workflows might break, you can run the following bash command in your workflows directory: 

grep -r "tell application \"Alfred 2\"" *

It produced 161 matches when I ran it in my workflows directory (with 151 workflows in the directory).  So potentially there's a lot that can break.

 

I deleted the DJPedro workflow which I never use, and that got it down to 64 matches right away, but it still looks like there are 20+ individual workflows that may break.

Link to post
grep -rl "tell application \"Alfred 2\"" * | uniq

will give a list of files with the hardcoded tells.  I have 22.

user.workflow.1358A7BF-26C3-4312-BA23-D4E87BA625B6/info.plist
user.workflow.1E4D4384-542C-406A-B5B2-35E4B7AB3C35/info.plist
user.workflow.23A2D552-B4DB-4773-A336-ED82109C352D/info.plist
user.workflow.2DED841C-F5F8-48A7-A695-383B1FCD3BE5/bundle/ruby/1.8/gems/alfred-workflow-1.8.0/lib/alfred.rb
user.workflow.34B64201-8299-4E7C-85A1-F7736E15E97E/info.plist
user.workflow.38BEA6E3-5C51-490A-86AF-48D9C0A181C5/fav_recent.scpt
user.workflow.5194A7D5-853C-43D5-8184-0D211A70DBA6/info.plist
user.workflow.5FE95E1D-6088-4196-8EF0-2836A6D587DC/info.plist
user.workflow.6546A6BB-6CB5-43A2-9F92-5C64C0AF61B8/info.plist
user.workflow.6A3B9081-0EE4-4D19-8262-DEF0F76F4008/info.plist
user.workflow.6D64B730-4FDA-49B6-8873-73D68B1A1BB1/info.plist
user.workflow.783FD75D-DFEC-430B-8F1B-50548E7BC2F9/info.plist
user.workflow.92CCE110-F193-44F2-8B89-D7BD4A606B02/scripts/process_list.sh
user.workflow.B7F7ABD3-088C-4C3B-B040-CDF4665FB353/info.plist
user.workflow.C0880408-EAC1-409E-A781-728C73FCA3A1/info.plist
user.workflow.D8FFA36D-F645-4B24-817F-0BFD3182CBFD/info.plist
user.workflow.F38F65DC-9AB3-464B-A68A-53BAA56C7EED/info.plist
user.workflow.F38F65DC-9AB3-464B-A68A-53BAA56C7EED/zotquery.py
user.workflow.FE4F8F24-B4C6-4AA1-89EE-330C97B76A43/info.plist
user.workflow.FF564346-F29D-4386-BCE5-4A04E1A02B12/common.py
user.workflow.FF564346-F29D-4386-BCE5-4A04E1A02B12/common.pyc
user.workflow.FFB01EFB-9B79-47B3-9347-BABAF289E892/info.plist

It's times like this that human-readable directory names would be a big help.

 

Updated - here's the list above (minus a few of my own that aren't public) with the workflow names added in.  A lot of these seem to work fine, but they do have code in them that is potentially broken:

 

Updated again -- I've posted a new version of the Workflow Picker workflow for Alfred 3 (in its own thread).  It took some poking around as preference file names had changed, but it wasn't too hard to update.

user.workflow.1358A7BF-26C3-4312-BA23-D4E87BA625B6/info.plist - Date Calculator
user.workflow.1E4D4384-542C-406A-B5B2-35E4B7AB3C35/info.plist - Citation Search
user.workflow.23A2D552-B4DB-4773-A336-ED82109C352D/info.plist - Python Documentation
user.workflow.2DED841C-F5F8-48A7-A695-383B1FCD3BE5/bundle/ruby/1.8/gems/alfred-workflow-1.8.0/lib/alfred.rb - Up Next (and maybe anything else built with this library)
user.workflow.34B64201-8299-4E7C-85A1-F7736E15E97E/info.plist - BibQuery (smargh)
user.workflow.38BEA6E3-5C51-490A-86AF-48D9C0A181C5/fav_recent.scpt - Recent Items (sztoltz)
user.workflow.5194A7D5-853C-43D5-8184-0D211A70DBA6/info.plist - Yosemite GUI Mode
user.workflow.5FE95E1D-6088-4196-8EF0-2836A6D587DC/info.plist - Workflow Picker (yes, I know that's one I wrote....)
user.workflow.6A3B9081-0EE4-4D19-8262-DEF0F76F4008/info.plist - Rome2Rio (also mine...)
user.workflow.6D64B730-4FDA-49B6-8873-73D68B1A1BB1/info.plist - Resolve URL
user.workflow.783FD75D-DFEC-430B-8F1B-50548E7BC2F9/info.plist - Using Script Filters
user.workflow.92CCE110-F193-44F2-8B89-D7BD4A606B02/scripts/process_list.sh - Egg Timer 2 (carlosnz)
user.workflow.B7F7ABD3-088C-4C3B-B040-CDF4665FB353/info.plist - Subscribe to Feed URLs
user.workflow.D8FFA36D-F645-4B24-817F-0BFD3182CBFD/info.plist - Pinboard (sztoltz)
user.workflow.F38F65DC-9AB3-464B-A68A-53BAA56C7EED/info.plist - ZotQuery
user.workflow.F38F65DC-9AB3-464B-A68A-53BAA56C7EED/zotquery.py - ZotQuery
user.workflow.FE4F8F24-B4C6-4AA1-89EE-330C97B76A43/info.plist - Alfred Browser Toolbox
user.workflow.FF564346-F29D-4386-BCE5-4A04E1A02B12/common.py - Reference Importer
user.workflow.FF564346-F29D-4386-BCE5-4A04E1A02B12/common.pyc  - Reference Importer
user.workflow.FFB01EFB-9B79-47B3-9347-BABAF289E892/info.plist - Rename File

Edited by dfay
Link to post

You also need to replace Alfred-2 with Alfred-3. This is very easy to do if your editor supports multiple file find & replace.

 

This is working for me until people get round to updating.

 

I didn't find what I have to edit.

It's look like I need to go back to Alfred 2.

Link to post

I didn't find what I have to edit.

It's look like I need to go back to Alfred 2.

 

Go into your workflow folder(right click workflow and click "Open in Finder") and open "alfred.py".

There you'll find these 2 lines:

        True: '~/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data',
        False: '~/Library/Application Support/Alfred 2/Workflow Data'

Replace "Alfred-2" with "Alfred-3" and "/Alfred 2/" with "/Alfred 3/"

 

then it works again :)

Edited by FroZen_X
Link to post

Go into your workflow folder(right click workflow and click "Open in Finder") and open "alfred.py".

There you'll find these 2 lines:

        True: '~/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data',
        False: '~/Library/Application Support/Alfred 2/Workflow Data'

Replace "Alfred-2" with "Alfred-3" and "/Alfred 2/" with "/Alfred 3/"

 

then it works again :)

 

Thanks a million times! It works now.

You are awesome!

Link to post

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