• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: OSA installed?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >OSA installed? (From: Oleg Lodygensky <email@hidden>)

  • Prev by Date: Re: Script Application Versions
  • Next by Date: file type
  • Previous by thread: OSA installed?
  • Next by thread: AppleScript and Web Pages
  • Index(es):
    • Date
    • Thread