Hook relies on UI scripting for integration with The Brain because The Brain lacks automation.
They must have changed the Edit menu in v. 12 Beta. We will have a look. (If someone wants to first share a screenshot of the Edit menu before a dev here gets to it, I will do a quick comparison with the script).
Update. Hook is working again with TheBrain v12.0.36.0. (Current alpha released to beta testings – yes, the terminology is confusing, but beta users can access the “alpha” channel for updates. It’s not private. Here’s the link).
Hi. Anyone want to comment on how they are using Hook with TheBrain12 (I’m at 12. 0.45). So far I have only placed Hook links within the Notes section linking to a folder in Finder. TheBrain only allows the link to be placed within a group of links at the top of the Notes editor. I would like to figure out how to place Hook links within the body of the Notes written in the editor.
Not for me. I just paste the hook://.... link into the text of the note, and TheBrain 12.0.45.0 inserts a markdown link correctly, not as an attachment. (The “group of links at the top of the Notes editor” are attachments – but TheBrain, for me, doesn’t put the Hook link into attachments unless I use Attach > Link to URL).
Hook: select a document > copy link with Hook >
In TheBrain: select a word within a Thought Note > insert Thought or Web Link > paste
The paste will give me the name of the document and not the Hook address.
Actually, no. Just paste the link directly into the body text of the note. You don’t need to use “Insert link” with this or any other custom URI links or standard HTTPS links.
FWIW, it’s broken again. No bidirectional links.
I do hope that eventually TheBrain gets its act together with an API. I finally gave up on UI scripting TheBrain. I get tired of broken code. However TheBrain does allow you to set a keyboard trigger for almost everything it does. Set something like “Copy Local Thought URL” to an out of the way keystroke and then automate away by simulating the keystroke.
(“Out of the way” keystrokes can be an issue. I don’t have a keypad, so use Keyboard Maestro to emulate any of the 255 possible combinations of modifiers and keypad keys to do things like this.)
But still no joy in Mudville as far as seamless use of Hook and TheBrain 12 Beta.
I am on TheBrain 12.0.50.0, the current beta version, and Hook works with that version most of the time. Occasionally it fails with the error you posted. It fails when that menu item (Edit > Copy as Text Outline) is disabled / greyed out. That seems to occur when TheBrain is syncing itself to its cloud service – but I can neither prove that or reproduce.
Anyway, Hook is working with TheBrain 12, but sometimes it does not. Not great or good, but re-trying does always succeed.
The question of when would there be a public API for TheBrain used to come up frequently in their user forum. The company stopped promising it several years ago. I wouldn’t hold my breath.