I have been able to use the recover script feature (File->Recover Damaged Script …) to open compiled scripts that have been messed up by replacing “SatImage” with app “SatimageOSAX”; this allows me to get clean text (without chevrons) to patch up with new “use” and “tell” statements.
I am trying to ‘script’ this action, with a script that will open (recover) the file as text and then save it as text (.applescript). I am having trouble with SD7’s “open” command when I add the “recovering text” option.
open alias "HighSierraHD:Users:____:Library:Scripts:Applications:InDesign:openWithStamp4Gen.scpt" showing script source with recovering text*
Error: the Apple Event handler failed (errAEEventFailed:-10000)
Note that “openWithStamp4Gen.scpt” opens as text with the (File->Recover Damaged Script …) menu command, and opens (with chevrons) without the “recovery text” option; but adding the “recovery text” option produces the error.
It this a bug?