I have a rather complex app, and can’t really post code for this one so this is more of a theoretical question. My app is AppleScript ObjC, presenting an interface and then running a linear process of steps until it’s done. In the course of doing this process, it loads several of a few dozen different script modules for various functions. Lots of legacy code…
It is working quite well with one exception, I get a couple different errors that stop the script such as “Scripting Component Error” or just a strange code… these stop the script process and leave me hanging.
The ODD part is that, as I put numeric logging throughout to try to track down where the problem was ” sort of a poor man’s debugging ” the problem vanished. I have found a spot in an external script that, if a log step is in place it works, if the log step is commented out it fails.
This is baffling as I don’t understand how the code can work fine if there is a log message added… something like this:
log 330
Can anyone give me a clue as to what might cause this? The external script is pure applescript…