Re: Determining if a scripting addition is installed
Re: Determining if a scripting addition is installed
- Subject: Re: Determining if a scripting addition is installed
- From: Christopher Nebel <email@hidden>
- Date: Fri, 2 Sep 2005 12:10:49 -0700
On Sep 2, 2005, at 11:13 AM, kai wrote:
On 2 Sep 2005, at 17:37, Daniel Jalkut wrote:
Does that work? Assume I have a scripting addition on my machine
that supports a command "sneeze loudly"... if I save this script:
try
sneeze loudly
on error
display dialog "Ahchoo!"
end
And mail it to you, then does it display a dialog "Ahchoo!" or
just fail to run? I can't compile the above script on my machine,
because I don't have the sneeze loudly scripting addition.
Any unsupported terms compile as raw code (as they were originally
saved). For example, let's say I'm using Jon's Commands and write
'the ticks' in my script. If I open the script on a machine that
doesn't have Jon's Commands installed, the statement compiles as
«event JonstikC». When the script (or applet) is run, I get an
error number -1708 (errAEEventNotHandled) with the message
"«script» doesn't understand the «event JonstikC» message".
The command *de*compiles (or displays, if you prefer) as raw codes on
a system that does not have the addition installed, but otherwise,
correct.
--Chris Nebel
AppleScript and Automator Engineering
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden