Don’t be too harsh on yourself. Tinderbox is, by software standards, a long-lived program and much has changed over time. Query language (the #-prefixed codes) have gone and action code has subsumed many export codes. At the same time, action code used to be a much more loosely defined syntax. however, as the range and depth of action code has grown it has been necessary for the user to be a bit more precise in defining intent. Some old code still works—Eastgate is kind to long-term users in not deliberately breaking existing code just to enforce new rules. Thus the above point about $-prefixes.
Long ago one might have written:
Color = 1
Whereas now general convention is to write:
$Color = "1";
With such a simple example, both still work but the second requires far less correct guesswork on behalf of the app. In some more complex cases the less guesswork we ask of the app the better!
$Color makes it emphatic we are making a reference to the current note’s “Color” attribute.
"green" makes emphatic that we are providing a string value for a color named “1”. Otherwise Tinderbox might try and choose the first defined colour name’s (i.e. ‘colour #1’) value, etc. The semi-colon, though not strictly needed here makes emphatic that this is the end of the current expression—akin to a full stop at the end of a sentence.
Though it always feels like a pain in the ***e I generally update code when opening an old file I intend to keep using. Yes, it normally breaks something on first pass, but the result is more robust going forward.
So, we share your pain! Don’t be too self-editing, this community is here to help and sometimes ‘updating’ code is less obvious than at first thought. Anyway, I hope you’re fixed now and if not do ask.