Re: query if application is open
Re: query if application is open
- Subject: Re: query if application is open
- From: "Jacob Eggers" <email@hidden>
- Date: Wed, 21 Feb 2007 19:25:55 -0500
Thank you, that works great.
(I used 'if application process "iTunes" exists then...')
j
On 2/21/07, kai <
email@hidden> wrote:
On 21 Feb 2007, at 23:06, Michelle Steiner wrote:
> On Feb 21, 2007, at 3:59 PM, Jacob Eggers wrote:
>
>> How do you check to see if an application is currently running? I
>> wan to
>> check to see if iTunes is playing and am using
>
> The following script will return true if iTunes is running
>
> tell application "System Events"
> (application processes whose name is "iTunes") is not {}
> end tell
As will an existence test:
tell application "System Events"
application process "iTunes" exists
end tell
---
kai
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman//archives/applescript-users
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:
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden