AppleScript - new note

This is a wonderful tutorial intro, Sumner! Well done!

@iPanini, I want to add a link to what @dominiquerenauld was working on that may have prompted your effort.

What Dominique was looking for was a way to add a note to a Tinderbox file while working in another app. That’s what the first part of the script is for. If you call it by means of the AppleScript Menu, or the FastScripts Menu, or by assigning it a keyboard shortcut, you can remain in DevonThink or Mail or some other app, enter your note name and the $Text by means of AppleScript variables, and the script will then run in the background, creating the note in Tinderbox while you remain in the app (and context) you were working in already.

Sumner’s post is a thorough look at creating a note (and a link!) through AppleScript. What makes that especially powerful is the bridging (or piping) capability of AppleScript, which allows you to add notes to your Tinderbox document while working in another app.

The structure of Captain’s Log was specifically created to facilitate a kind of “daily notes” outline, wherein all of the outline structure is created automatically by Tinderbox, and I just have to add notes, confident that they’ll be filed in the appropriate container.

That may not be appropriate for your use case, and in fact it may be much simpler to add notes as Sumner has described without essentially “computing” thePath as is the case in Captain’s Log.

I believe Dominique planned to use an “Inbox” container, essentially a fixed location within the document, to capture the notes; and rely on Action Code to then move them to a more appropriate container, or to process them manually. That may be a much simpler approach for what you’re trying to do.