• 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: Jon Pugh <email@hidden>
  • Date: Thu, 20 Sep 2007 10:27:00 -0700

At 10:36 AM -0400 9/20/07, Jeremy Matthews wrote:
>I have the following basic code:
>
>tell application "Finder"
>		if application "GrowlHelperApp" exists then
>			set growlexists to "true"
>		end if
>end tell
>
>If the app DOESN'T exist...then it continually prompts you to find/choose the application. Is there a way to gain silent approval or failure of this possibility without getting that prompt?

We just did this thread back in July.

Here's a summary of 3 techniques, adjusted for Growl:

tell application "Finder"
	{exists file "Growl.prefPane" of folder "PreferencePanes" of folder "Library" of startup disk, ¬
		exists application file id "GRRR", ¬
		exists application file id "com.Growl.GrowlHelperApp"}
end tell

The Finder can't see into the Growl.prefPane package to check if the helper is there, but I would expect the prefPane to be sufficient.  The other two are better though, since they check specifically for the helper in a path-free machine independent manner.

Jon
 _______________________________________________
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

References: 
 >Check if app exists (From: Jeremy Matthews <email@hidden>)

  • Prev by Date: Re: Check if app exists
  • Next by Date: Re: Exporting shell variables to AppleScripts
  • Previous by thread: Re: Check if app exists
  • Next by thread: Re: Check if app exists
  • Index(es):
    • Date
    • Thread