One change I’ve noticed with Tahoe is that Script Debugger does not always work reliably. Most notably, the app will occasionally beach-ball for 10 seconds or so before completing some task.
Script Debugger was retired 11 months ago, and additional issues will almost certainly arise. So, I thought it was time to see if Script Editor could be used to write ASObjC scripts. The answer is yes but with two reservations.
When writing a new ASObjC script with Script Editor, I have to save the script almost immediately. If not, I get the following error and compiling the script does not make a difference (I don’t know what this has to do with autosave). The workaround when this occurs is to copy the script to the clipboard and then open and immediately save the script in a new Script Editor window.
The document “Untitled 2.scpt” could not be autosaved. C and Objective-C pointers cannot be saved in scripts. Compiling the script will reset property values and may resolve this issue.
The second reservation is that ASObjC values are not returned by Script Editor in a meaningful manner. For example, the result of a NSString is returned in Script Editor as «class ocid» id «data optr0000000000EA76A909000000» The fix for this is to coerce the NSString to text. Arrays and dictionaries can be handled similarly.