I'm using a launcher stack saved as a standalone.
This launcher opens a Livecode stack which resides on a server. The stack loads and runs fine.
However, the stack tries to run a small Applescript at some point and some people, mostly on macOS Mojave, then run into macOS error -67062 (as visible in Console) and the Applescript does not run.
macOS error -67062 has to do with unsigned code, so I tried code-signing and notarizing the app to see if that helped. Code-signing and notarizing eventually worked, but now the funny thing is that I'm running into this error myself on my own machine with the code-signed app. No problem with the unsigned app. What I also find very peculiar is that some people are running into this issue and others are not.
For what it's worth, the AppleScript in question is just a few lines long and uses System Events to type a keyboard shortcut in another application. The AppleScript gets the name of the application from the stack (the same shortcut is to be used in any of 5 different applications).
I tried to see if I could get some more information about the error by using this, but no luck, no error is returned:
Code: Select all
try
do myAppleScript as Applescript
catch someError
answer "An error ocurred:" && someError
end try