• 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
Application check - hunt but ignore
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Application check - hunt but ignore


  • Subject: Application check - hunt but ignore
  • From: Laine Lee <email@hidden>
  • Date: Mon, 29 Mar 2010 10:40:07 -0500
  • Thread-topic: Application check - hunt but ignore

I'm using Snow Leopard, and I've been referring to what appears to be fairly
thorough coverage of the concept in the following thread to implement some
sort of application availability checking:

http://lists.apple.com/archives/applescript-users/2007/Sep/msg00217.html

This makes sense for notification apps like BP Progress Bar and Growl. I
know this has been talked about a lot, but I'm still missing it, or at least
not getting what I'm hoping for, which is to avoid the prompts for finding
the nonessential applications if they're not available and continue to
execute essential commands.

Here's what I've got so far, but I'm still prompted to find the missing
application. Where have I gone wrong, have I simply misunderstood what is
possible, or have things changed too much since that 2007 posting for it to
be useful? Thanks.

tell application "Finder"
    try
        exists application file id "com.Growl.GrowlHelperApp"
        set growl_present to true
    on error
        set growl_present to false
    end try
end tell
if growl_present then
    using terms from application "GrowlHelperApp"
        tell application id "com.Growl.GrowlHelperApp"
            activate --and more
        end tell
    end using terms from
    --stuff
else
    --same stuff
end if


Laine Lee


 _______________________________________________
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

  • Follow-Ups:
    • Re: Application check - hunt but ignore
      • From: "Stockly, Ed" <email@hidden>
  • Prev by Date: Re: Mount With Password
  • Next by Date: Image Events not saving after scale
  • Previous by thread: Re: Mount With Password
  • Next by thread: Re: Application check - hunt but ignore
  • Index(es):
    • Date
    • Thread