I have an annoying problem that I don’t know how to debug. I suspect it’s a BBEdit issue, but it only affects my Applescripting. At the end of certain Applescript routines performed within BBEdit, usually just before the results are inserted back into an open document, I get a dialog box which displays “This operation couldn’t be completed, because an error occurred. (MacOS Error code: -2707)”
The results of the script are always contained in the clipboard, so I usually just dismiss the dialog box and paste the results.
This always happens only at the very end of the script. If I add more statements in the script before the end, they’ll execute properly but at termination the dialog box shows up.
The insertion into the open document isn’t the problem. Interim steps in the script which call for the same type of insertion in BBEdit work without error.
And some of these scripts are legacy scripts which worked fine in previous versions of BBEdit. At some upgrade point in the past, these started showing up.
Seen this before? Any ideas?
Thanks very much!