Re: Is app running?
Re: Is app running?
- Subject: Re: Is app running?
- From: Paul Berkowitz <email@hidden>
- Date: Fri, 06 May 2005 08:12:57 -0700
On 5/5/05 4:44 PM, "Brennan" <email@hidden> wrote:
> This works, but is there a way to do this without using the Finder? (And
> preferably without launching any other apps).
>
> Maybe it's an old OS9 habit dying hard (where calls to the Finder had
> significant performance overheads).
There really isn't any such problem in OS 10.1 and later. But the Processes
Suite is really handled by "System Events" anyway, so just talk to it
directly with the same code.
tell application "System Events"
(application processes whose name contains "QuickTime Player") is {}
end tell
Honestly, this is far preferable to GUI scripting (which requires that the
user has clipped a switch in Universal Access System Preferences, for
starters). I'm sure Emmanuel's shell script also works perfectly. But so
does your own plain AppleScript code, in System Events or in the Finder.
--
Paul Berkowitz
_______________________________________________
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