• 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
weird UI scripting problems.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

weird UI scripting problems.


  • Subject: weird UI scripting problems.
  • From: Deivy Petrescu <email@hidden>
  • Date: Mon, 10 Nov 2003 15:23:29 -0500

The first of the weird problems i am facing with UI scripting is numbers... I can not script a
keystroke a (where a is a number)
So keystroke 1 or keystroke 6 or keystroke 9 produces nothing.
Can anybody confirm this ?

The second problem is with UI scripting and Windows Media Player.

the following script errors:

tell application "Windows Media Player" to activate
tell application "System Events"
set frontmost to true
tell process "Windows Media Player"
return title of menu bar 1's menu 5
end tell
end tell

--> get title of menu 5 of menu bar 1 of process "Windows Media Player"
--> "System Events got an error: NSReceiverEvaluationScriptError: 4"

However this works

tell application "Windows Media Player" to activate
tell application "System Events"
set frontmost to true
tell process "Script Editor"
return title of menu bar 1's menu 5
end tell
end tell

--> get title of menu 5 of menu bar 1 of process "Script Editor"
--> "View"


UI Element Inspector shows both menus 5 as being "titled" "View".
I really do not understand the problem.

thanks for any help!



Regards

Deivy
http://www.dicas.com/
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: weird UI scripting problems.
      • From: Deivy Petrescu <email@hidden>
  • Prev by Date: Re: applescript-users digest, Vol 3 #2145 - 13 msgs ( -Reply)
  • Next by Date: Re: Panther: AppleScript 1.9.2 Release Notes
  • Previous by thread: Force string to be UTF-8?
  • Next by thread: Re: weird UI scripting problems.
  • Index(es):
    • Date
    • Thread