Re: query if application is open
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