I’m trying to get Hook to work with Tinderbox. Version 8 supports appleScript. With that I was able get the name:
tell application "Tinderbox 8"
tell front document's selection
set theNames to name
end tell
end tell
and the address of a note:
tell application "Tinderbox 8"
tell front document's selection
set noteURLs to value of attribute "NoteURL"
end tell
end tell
To open an item I’m using this script:
set note_id to "$0"
tell application "Tinderbox"
activate
open location note_url
end tell
That script selects the correct note, but the text window isn’t in sync with with the selected note. I asked for help on the Tinderbox forum, but maybe someone here knows if there is something wrong in the scripts? I’m a beginner with appleScript and tried to put things together based on examples I found.
Thanks for the pointer to the website. I think the proper attributes are set. Here is an example of a full link I’m getting when I invoke Hook on a note:
which leaves out the path compared to what I had. However, same difference, the note gets selected but the text shown in the editor belongs to whatever note was selected previously. I think I’m going to ask the Tinderbox guys.
It’s a bug in the way Tinderbox 8 interacts with scripts. Scripting was added to Tinderbox about a week before v8 was released, and is not fully fleshed out. I suggest you skip the forums and write Mark Bernstein (bernstein at Eastgate dot com) directly with your questions and suggestions – he is open for exposing more commands in the Tinderbox dictionary for people who want to script.
Linking to notes within Tinderbox (and getting to them) would be awesome! So, would love to know if there is a solid solution available or still in the works.
Thanks for asking, @trianta. Our Tinderbox prime will be back next week and will answer that one. Our goal is to optimally integrate with all the major personal information managers.
We spent time on other Hook projects (1.2., 1.3, etc.). we also concluded in the summer that Tinderbox would require digging deeper into it, given that none of us was a user of the app at the time and the app is special.