weird UI scripting problems.
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.