• 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: Jeremy Matthews <email@hidden>
  • Date: Thu, 20 Sep 2007 20:48:07 -0400

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?

Right now, the temporary script (which works) is like this:

global growlexists

on growlcheck()
try
if result of (do shell script "ls /Library/PreferencePanes/Growl.prefPane/") = "Contents" then
set growlexists to true
else
set growlexists to false
end if
on error
set growlexists to false
end try
end growlcheck

on runapp()
my growlcheck()
if growlexists is true then
display dialog "growl installed"
--run growl example code here
-- http://growl.info/documentation/applescript-support.php
else
display dialog "growl not installed"
end if
end runapp

my runapp()


However, when I ADD the growl example code (link to sample code noted in the script above), it still prompts the user to find the application.


Ideas?
Thanks,
j
 _______________________________________________
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: Check if app exists
      • From: Tim Mansour <email@hidden>
    • Re: Check if app exists
      • From: deivy petrescu <email@hidden>
  • Prev by Date: ANN: MetaData.osax 1.0.4
  • 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