Hook directly from a launcher (Alfred etc.) result?

I would love to be able to copy a hookmark directly from an Alfred result. A little background:

I use Hookmark extensively, but almost exclusively in OmniFocus. I hook actions to the materials that I’ll need to complete them (or vice versa). The biggest friction point for me with Hookmark is that I need to search for the materials, open the Finder folder, copy the link, go back to OF, paste the link, etc. (I have powerful shortcuts going in the other direction, to create an OF item when I’m already at a resource I’ll need later.)

What I’d love is to be able to search for a file or folder with Alfred, select the result, and create the hookmark right there, without having to mess around with Finder. Has anyone got something like that, with Alfred or any other launcher?

We have a workflow that can do the search, not sure it will help.

But currently copy link is not available yet. We will have a look. But if you are familiar with Alfred workflow and AppleScript, you can also make the modification.

Thank you

Thanks for replying!

But no, that’s not actually what I’m looking for, even if you added a copy function. I’ve actually edited my original post, because “copy the hookmark right there” was the wrong phrase. It should have read, “copy the link” or even better, “create the hookmark.”

I’ve since experimented a bit, and as usual Keyboard Maestro more or less provides the functionality I want. I’ve created a macro that, once I’ve selected a result from Alfred:

  • Arrows right
  • Types “reveal” and hits Enter (to reveal the selected item in Finder)
  • Waits until the Finder window appears, then copies a link to the item
  • Closes the Finder window and Cmd-Tabs back to (probably) OmniFocus or whatever app I was using before

It’s a little clunky but works reliably.

I would love it if someone would tweak an Applescript so we could have an Alfred workflow that would get at least to step 3 without Keyboard Maestro!

Hmmm. Now that I think about it, what would be the UI of such a workflow? I guess instead of searching using the Quick File Search shortcut, you would type h <query> or something, and get the usual list of files and folders, and whatever item you selected would get hook-copied?

I had originally been thinking it would be nice to have “Copy Hook” in the list of options you get when arrowing right on the Quick File Search results, but maybe the above would be easier?

Yeah this is easily done using the CLI version, see my earlier comment below.

1 Like