Tinderbox v10 Icon

Case sensitivity differs in Tinderbox vs. AppleScript

IMPORTANT!

AppleScript case sensitivity when resolving note name matches differs from action code.

Whereas Tinderbox note name values ($Name) are matched case-sensitively, some AppleScript commands are case-insensitive and AppleScript’s case-insensitivity cannot be over-ridden. Unfortunately, AppleScript's named is one such case-insensitive operator (note that it is consistent with Finder's behaviour). Also, be aware that AppleScript code

note "project" 

is only a short way to write

note named "project" 

… i.e. both examples use named, even if it is only explicit in the latter. This means the code acts case-insensitively to match the first ($OutlineOrder-based) match to notes named 'project' or 'Project' which otherwise would be discrete matches in Tinderbox action code. By contrast, Tinderbox action code can distinguish note 'X' from note 'x' although if matching returns two notes called 'x', it would pick the first by outline order ($OutlineOrder value) as the returned matched item.

If affected by this consider resolving correct identity based on $Path or $IDString data instead and see the find note in example. If needing to do multiple operations on a note (or in scope of a note) use a more precise method to set a reference to the note and then re-use the reference as needed.


See also—notes linking to here: