• 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: query if application is open
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: query if application is open


  • Subject: Re: query if application is open
  • From: Luther Fuller <email@hidden>
  • Date: Thu, 22 Feb 2007 08:41:16 -0600

That sounds like good advice, and in the past I have tried using System Events where possible, but System Events responds to errors in an odd way ...

It often simply kills my process, no error message, no nothing; or it posts its own cryptic error message (NSblahblahetc), then kills my process. This makes tracking-down an error very difficult. When System Events learns to properly pass errors back to my script, I will use it more often.

On Feb 21, 2007, at 9:06 PM, Michelle Steiner wrote:

On Feb 21, 2007, at 6:20 PM, Luther Fuller wrote:

Don't forget, the Finder can do that too! Run this one-liner:

tell application "Finder" to if (name of every process) contains "iTunes" then beep

I believe that the official word from Apple is that if you can script both the finder and system events to do something, use system events because the finder may not always have that functionality.

_______________________________________________ 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/mailman//archives/applescript-users

This email sent to email@hidden
References: 
 >query if application is open (From: "Jacob Eggers" <email@hidden>)
 >Re: query if application is open (From: Michelle Steiner <email@hidden>)
 >Re: query if application is open (From: kai <email@hidden>)
 >Re: query if application is open (From: "Jacob Eggers" <email@hidden>)
 >Re: query if application is open (From: Luther Fuller <email@hidden>)
 >Re: query if application is open (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Set pointer from 'item tool' to 'content tool'
  • Next by Date: Call JavaScript from AppleScript
  • Previous by thread: Re: query if application is open
  • Next by thread: Set pointer from 'item tool' to 'content tool'
  • Index(es):
    • Date
    • Thread