• 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: Tim Mansour <email@hidden>
  • Date: Fri, 21 Sep 2007 15:33:57 +1000


On 21/09/2007, at 10:48 am, Jeremy Matthews wrote:

Hmmm...I tried a variety of suggestions and combinations, and many work well in Script Editor, but not AppleScript Studio (which the code was just moved to). I'd prefer to avoid cross-posting (especially if its not necessary), but has anyone else run into this?


I'm currently doing it this way in one of my scripts Jeremy (admittedly, not an AS Studio solution):


property growlHelper : "Library:PreferencePanes:Growl.prefPane:Contents:Resources:GrowlHelperAp p.app"


set userPath to path to home folder as Unicode text
set localPath to path to startup disk as Unicode text

tell application "System Events" to set growlExists to {exists file (userPath & growlHelper), exists file (localPath & growlHelper)}

if growlExists contains true then
	-- insert code
end if


-- Tim Mansour <email@hidden>



_______________________________________________
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: 
 >Re: Check if app exists (From: Jeremy Matthews <email@hidden>)

  • Prev by Date: Re: Check if app exists
  • Next by Date: Scripting Excel: sample code?
  • Previous by thread: Re: Check if app exists
  • Next by thread: Re: Check if app exists
  • Index(es):
    • Date
    • Thread