OSA installed?
OSA installed?
- Subject: OSA installed?
- From: Oleg Lodygensky <email@hidden>
- Date: Wed, 12 Sep 2001 17:40:55 +0200
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.
-- ************************************************************
on getAppPath()
-- get CW appllication path
-- ************************************************************
try
-- this works if Satimage OsaXen provided with Smile is **NOT** installed
set cw_appFullPath to path to application "CodeWarrior IDE" as string
on error
try
-- this works if Satimage OsaXen provided with Smile is installed
set cw_appFullPath to path to application "CWIE" as string
on error
error "Can't find Codewarrior application" number 1
end try
end try
return cw_appFullPath
end getAppPath