• 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: Addressing an app that may or may not exists (without alerting user)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Addressing an app that may or may not exists (without alerting user)


  • Subject: Re: Addressing an app that may or may not exists (without alerting user)
  • From: "Sean P. Kane" <email@hidden>
  • Date: Mon, 13 Mar 2006 01:50:35 -0800

In the end I could not get any of the suggested methods to work. Even if I had logic that should have missed the tell application block completely if they did not have Growl installed, it still seemed to ask for it (and I tried 4 or five methods), so for now, I just made it a requirement, instead of an option. This is broken functionality in my opinion. There should be a proper way of handling this situation. I can't imagine that it is all that unusual.

Sean

------------------------------------------------------------------------ -------------------------------------
Sean P. Kane email@hidden
------------------------------------------------------------------------ -------------------------------------
"When we destroy something man has created we call it vandalism......
When we destroy something that Mother Nature has created we call it progress."



On Mar 01, 2006, at 20:01 , Takaaki Naganoya wrote:

I think that this is the best way.

<script>

getPresenseOfApp("com.Growl.GrowlHelperApp") of me

on getPresenseOfApp(idText)
    tell application "Finder"
        try
            set a to application file id idText
            return true
        on error
            return false
        end try
    end tell
end getPresenseOfApp

</script>

--
Takaaki Naganoya
Piyomaru Software
http://www.appleco.jp/piyomarusoft/

On 06.2.28 2:03 AM, "Sean P. Kane" <email@hidden> wrote:

I have added support for Growl into my script and would like it simply
to be
used if the user happens to have it installed. I have it in a
try block that
does nothing on error. However the problem I have is
that it the system asks
to locate the GrowlHelper application I am
addressing when it can't find it
instead of simply failing silently.
Is there a way to write this so that it
will not ever ask the user
where this application
is?

Thanks, Sean

--
--------------------------------------------------------
------------------------------------------------------------
Sean P. Kane


email@hidden
-----------------------------------------------------------
----------------------------------------------------------
Congress
appropriates. Microsoft lobbies.
Citizens
steal.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (Applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
mark.nu


This email sent to email@hidden


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (Applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com


This email sent to 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: This email sent to email@hidden
  • Follow-Ups:
    • Re: Addressing an app that may or may not exists (without alerting user)
      • From: kai <email@hidden>
    • Re: Addressing an app that may or may not exists (without alerting user)
      • From: "John C. Welch" <email@hidden>
References: 
 >Re: Addressing an app that may or may not exists (without alerting user) (From: Takaaki Naganoya <email@hidden>)

  • Prev by Date: Re: Build Development versus Deployment changes results of simple Applescript lines
  • Next by Date: Re: iCal: How to retrieve a list of events in chronological order?
  • Previous by thread: Re: Addressing an app that may or may not exists (without alerting user)
  • Next by thread: Re: Addressing an app that may or may not exists (without alerting user)
  • Index(es):
    • Date
    • Thread