Jump to content

Enumerate all defined Hotkeys across workflows?


Recommended Posts

Before I go too far down a rabbit hole, I came here for a sanity check...

 

What I'm after is to be able to programmatically generate a list of all defined hotkeys across my entire workflows collection. I briefly looked at iterating though each Info.plist from the Alfred.alfredpreferences/workflows/user.workflow.{UUID}/info.plist and trying to parse out the details using some XML tools... but that seems like a medium sized undertaking and if there's any other simpler or more reliable way I'd love to hear about it!

Thanks guys

 

Link to comment
7 hours ago, luckman212 said:

if there's any other simpler or more reliable way I'd love to hear about it!

 

Nope, I don't think so. Parsing all the info.plist files is the most reasonable option, and it's not entirely straightforward unless you're doing it in ObjC/Swift:

 

 

Link to comment
On 11/23/2019 at 2:33 PM, luckman212 said:

if there's any other simpler or more reliable way I'd love to hear about it!

 

Depends on why you want to get the list. If all you want to do is see all your Hotkeys in Alfred (e.g. in a Script Filter), all you need is to type ?hotkey.

Link to comment
  • 2 weeks later...

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