• 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
Does UI scripting work on MacOSX 10.2?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Does UI scripting work on MacOSX 10.2?


  • Subject: Does UI scripting work on MacOSX 10.2?
  • From: Dan Shanahan <email@hidden>
  • Date: Mon, 26 Jan 2004 01:03:23 -0500

I'm trying to learn UI scripting. I have Enabled Assistive Devices in
the system preferences. I also downloaded the UI Element Inspector, &
that works, showing the UI hierarchy. None of the scripts I write or
download to manipulate an applications UI work. I've tried using
Finder, iPhoto, System Preferences, & some others. Mostly I've tried to
use the menu bar, but I've also tried to access windows & non-menu bar
buttons. I get a similar error every time. Here's an example script
with it's error:
-----------------------------Script---------------------
tell application "System Preferences"
activate
end tell

tell application "System Events"
tell process "System Preferences"
tell menu bar 1 <-------- Error here when compiling
tell menu bar item "View"
tell menu "Dock"
click menu item "Dock"
end tell
end tell
end tell
end tell
end tell
return true
---------------------------Error-------------------
Expected end of line but found number.


Is this supposed to work on MacOSX 10.2.8? If so, any ideas what I'm
doing wrong?

Thanks,
Dan
_______________________________________________
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: Does UI scripting work on MacOSX 10.2?
      • From: Bill Cheeseman <email@hidden>
    • Re: Does UI scripting work on MacOSX 10.2?
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Not able to get Folder Actions to work
  • Next by Date: Multiline awk needs debugging
  • Previous by thread: Re: Scripting Additions 'Read' has stopped reaching EOF?
  • Next by thread: Re: Does UI scripting work on MacOSX 10.2?
  • Index(es):
    • Date
    • Thread