Jump to content
luckman212

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

 

Share this post


Link to post
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:

 

 

Share this post


Link to post

@Acidham really slick workflow! I love this.

 

The quicklook popup in Markdown is pretty cool, but I don't have a good QL markdown plugin, so it just renders as plaintext. Got any suggestions?

Share this post


Link to post
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.

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