I have just spent some (undisclosed amount of) time working on a new AppleScript script to process all of my diary records in DEVONthink. Exports from Day One neither include the name of the day in the Date: heading nor align the date neatly. Surely I could do both with a simple script, I thought…
theOldDiaryDate is not defined Script editor repeatedly barked at me. Stupid thing—of course it’s defined: look at that line…there! And so I struggled, adding return this and return that all over the place to try to home in on the problem.
Like the BBC nature documentary camera crews who “on the very last day were packing their equipment when suddenly…” they got what they came for I did eventually notice I had a definition for theOldDairyDate. AppleScript clearly milked that one for all it was worth.
I’ve done that with length of numerous times - something about length leads me to mistype it and read over the mistake again and again so much for confessions of a …