Mesh Link All Open Documents in a Given App (via Hook)

Link to Keyboard Maestro macro (uploaded in disabled state): MESH HOOK OPEN DOCUMENTS.kmmacros

(Cross-posted at Keyboard Maestro Forum.)

This Keyboard Maestro macro is a utility for the Hook app by CogSci Apps. Hook allows you to link files and URLs together for quick reference. From the Hook website:

“A ‘hook’ is a contextual two-way link. You can ‘hook’ an item to as many other items as you want. When you invoke Hook on an item, you see everything you have hooked onto it. Easily navigate back & forth between hooked items.”

One use case for Hook is to link files/documents together for quick reference and retrieval. When I’m interacting with an open file or document, I invoke the Hook dialog to see and retrieve other files/documents I have associated with the item I am currently working with.



In the above image, I am working with an open TextEdit document and there are two other open TE documents on my desktop. I have invoked the Hook dialog which shows me that the other two open documents are associated with the frontmost document. If I were to invoke Hook for either of the other two documents, I would see the remaining documents in the Hook dialog. In other words, these documents are all mutually linked (‘mesh linked’).

Getting the documents mesh linked, so that I can access the other documents from any one of the group of linked documents typically requires a series of manual steps that can be a bit time-consuming and tedious. I can link one document to another via the Hook dialog, but then I’ve got to repeat the step with the other document to link it back to the first. If I want to mesh link multiple open documents, that becomes a chore.

This macro mesh links all open documents in a given app, saving a lot of time. It utilizes scripts by @Nige_S (see this Macro and discussion of scripting solutions for tagging multiple open documents), and Chris Stone (see discussion here) to gather the filepaths of the open documents. It then adapts a script by Brett Terpstra, to ‘mesh link’ the open documents together in Hook.



See also:

Mesh Link Selected Finder Items (via Hook)

Mesh Link All Tabs In Safari Window (via Hook)

Tag Open File(s)/Document(s) w/o Interacting w/Finder

2 Likes

Ok. I keep failing to really get going with Hook, even though it seems like it should be a good fit for my workflow. But this is pretty impressive.

Do you know if there are limitations of which apps it will work with?

Check out the link for the Hook app which I’ve included in the post for more information about which apps work with it. The number increases daily and it seems to work with dozens of high profile, commonly-used apps.

I think the barrier to more regular use of Hook is the tedium of linking multiple items together. If it can be done quickly and intuitively, that barrier comes down, at least for me.

1 Like

Agreed. I also think the … interfaceless interface, for lack of a better word, contributes. I expect that approach makes perfect sense once you get going, but I’ve had a hard time wrapping my head around it.

Yes, it takes a little getting used to, but if you’re familiar with apps like Launchbar, Alfred, or even Spotlight, it’s similar in its UI.

1 Like