Re: OSA installed?
Re: OSA installed?
- Subject: Re: OSA installed?
- From: "Bob.Kalbaugh" <email@hidden>
- Date: Wed, 12 Sep 2001 19:02:15 -0500
on 9/12/01 10:40 AM, Oleg Lodygensky at email@hidden wrote:
>
sorry if the answer is obvious and/or has already benn posted...
>
>
how can a running script know if a scripting extension has been installed ?
>
I have installed Satimage scripting extension and written a script using
>
'path to application' but I would like the script to work even if that
>
scripting extension has not been installed
>
>
the problem is that 'path to application' from Satimage takes creator type
>
and the one from "Standard scripting extension" takes applicatin name
>
>
any idea?
>
thanks
>
Oleg.
Why not let Finder try to find it?
--
tell application "Finder"
set appExists to (application file id "CWIE") exists
end tell
if appExists then
do your thing
else
do your other thing
end if
--
Oh, and OMM. appExists --> false
_bob.kalbaugh