Re: Is app running?
Re: Is app running?
- Subject: Re: Is app running?
- From: deivy petrescu <email@hidden>
- Date: Sun, 8 May 2005 13:02:29 -0400
On May 6, 2005, at 7:34, Bill Cheeseman wrote:
In Tiger, you can now use GUI Scripting to do this, at least with
respect to
applications that have a user interface (i.e., their icons appear
in the
Dock when running). Like this:
tell application "System Events"
tell process "Dock"
get value of attribute "AXIsApplicationRunning" of UI element
"QuickTime Player" of list 1
end tell
end tell
Bill Cheeseman - email@hidden
First thanks for the pointer.
Experimenting with that I tried other AX attributes and seemed to
have a problem with "AXURL".
"AXURL" should give me the URL of the file or application in the
system, something like:
“file://localhost/Applications/AppleScript/Script Editor.app/”
for SE. However, running the script:
tell application "System Events"
tell process "Dock"
get value of attribute "AXURL" of UI element "QuickTime
Player" of list 1
end tell
end tell
---> «class » id 1 of application "System Events"
Am I missing something?
Thanks.
deivy petrescu
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