Does UI scripting work on MacOSX 10.2?
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.