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

Re: weird UI scripting problems.


  • Subject: Re: weird UI scripting problems.
  • From: Deivy Petrescu <email@hidden>
  • Date: Mon, 10 Nov 2003 20:05:12 -0500

On Nov 10, 2003, at 3:23 PM, Deivy Petrescu wrote:

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 ?


follow up:

I can script keystroke "4" or whatever number, but not on the iBook, only on the G4. Both running Panther.
Does this happens with all laptops? Can anybody else check please?

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!




The weird part is, the above scripts error in my G4 for all apps I've tried. It simply does not work!
So, it works on my laptop, but it does not in my desktop, plus, keystroke "number" works in the desktop but not on the laptop.
Something is probably wrong with this picture.
To the applescript team: be careful on what you write, both computers are Apple Macintosh.... :)

Can anybody else try this as well? Thanks



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: Bill Cheeseman <email@hidden>
    • Re: weird UI scripting problems.
      • From: Bill Cheeseman <email@hidden>
References: 
 >weird UI scripting problems. (From: Deivy Petrescu <email@hidden>)

  • Prev by Date: Re: weird UI scripting problems.
  • Next by Date: Re: Removable Disks (wrapping code)
  • Previous by thread: weird UI scripting problems.
  • Next by thread: Re: weird UI scripting problems.
  • Index(es):
    • Date
    • Thread