External links to tinderbox notes

Seems to be working here after adding a Tinderbox 8 entry in Hook preferences with a Get Name script:

tell application "Tinderbox 8"
    tell front document
        set xs to its selection
        if {} ≠ xs then
            value of (attribute "Name" of (item 1 of xs))
        else
            name of it
        end if
    end tell
end tell

and a Get Address script:

tell application "Tinderbox 8"
    tell front document
        set xs to its selection
        if {} ≠ xs then
            set target to item 1 of xs
        else
            set target to it
        end if
        return value of (attribute "NoteURL" of target)
    end tell
end tell
7 Likes