• 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: Is app running?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Is app running?
      • From: Bill Cheeseman <email@hidden>
References: 
 >Re: Is app running? (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: Script Editor in Tiger: where's the Find gone?
  • Next by Date: Re: idle script not working
  • Previous by thread: Re: Is app running?
  • Next by thread: Re: Is app running?
  • Index(es):
    • Date
    • Thread