• 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: Check if app exists
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Check if app exists


  • Subject: Re: Check if app exists
  • From: has <email@hidden>
  • Date: Thu, 20 Sep 2007 17:43:33 +0100

I wrote:

I think what you want is to call LaunchServices' LSFindApplicationForInfo function

If you don't mind launching the application you're checking for, another option might be to kludge things by calling 'open' via 'do shell script' and seeing if it raises an error or not:


try
	do shell script "open -a GrowlHelperApp"
	set growlExists to true
on error number 1
	set growlExists to false
end try

Calling LSFindApplicationForInfo would be a better solution, however.

has
--
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Prev by Date: Re: Check if app exists
  • Next by Date: Re: Check if app exists
  • Previous by thread: Re: Check if app exists
  • Next by thread: Re: Check if app exists
  • Index(es):
    • Date
    • Thread