I have a few projects that cause translocation errors when first launched (if the app hasn’t been moved from its initial download, and I haven’t been able to figure out exactly which command in the script is causing the error.
Is it possible to open a script with a command that (if the app hasn’t been moved) will trigger a translocation error right at the start, so that the script can trap it and tell the user to move it? Or, even better, have the app offer to move itself, as in Marc Anthony’s code in this thread:
https://macscripter.net/viewtopic.php?id=44992
The idea is to cause the error if I know that the error will occur later in the script, but simply run the rest of the script if the error isn’t triggered and the rest of the app will therefore run normally.