When using AppleScript to create a note inside an adornment, Tinderbox displays the adornment as if it were a container, until I drag the new note a bit and then the adornment looks like an adornment again.
To reproduce: open a blank document, create an adornment called “INBOX” and then run the following Applescript:
tell application id "Cere"
if not (exists front document) then error "No Tinderbox document is open."
tell front document
set theAdornment to adornment "INBOX"
set theNote to make new note at theAdornment with properties {name:"Test Note"}
end tell
end tell
It would be nice if the adornment kept its appearance when a new note is placed on it via applescript. Am I doing something wrong?
My goal is to be able to automatically apply the OnAdd actions of the adornment (set a prototype etc.), to be able to reliably find the new note(s), and easily drag them to their proper place in my messy map. Dragging notes out of a container in map view is a PITA. Any advice for a way to achieve this without targeting the adornment through applescript?
OK, I should have clarified: the notes are funneled into Tinderbox from outside the app. They’re selected notes written in Emacs and part of a large repository of my notes. The goal is to send them to Tinderbox and have them arrive in a predicable place, be treated in certain automatic ways, and then be ready for me to drag them where I want them on the map. So, I use AppleScript as the glue/channel between Emacs and Tinderbox.