Is there any way to open a compiled script or applet when an app referred therein is missing?
Sometimes I have a need to inspect such a script when I’m away from the computer with the app, and I can’t get into it.
Yes, I know that normally one must have a TEXT version of such a script, but things don’t always work out that way and I’m frustrated. I’m asking whether there’s any way to circumvent the normal behavior, and I recognize that any changes made to the script would have to be save as TEXT.
I wish you would have said what app it was, but if an app has a creator type then you can find out if the app exists. You can get the creator type with:
set f to choose file
return file creator of (info for f)
if it has a creator type, then you can use something like this for acrobat reader which has a creator type of “CARO”:
tell application “Finder”
exists application file id “CARO”
end tell
If you’re on a computer and want to open the script before you can add these things and the computer doesn’t have the app maybe you can make a dummy applescript app with the same name.