Fwd: Using GUI Scripting to set window positions
Fwd: Using GUI Scripting to set window positions
- Subject: Fwd: Using GUI Scripting to set window positions
- From: Jim Witte <email@hidden>
- Date: Sun, 18 Apr 2004 20:40:42 -0500
GUI Scripting should be able to, and it used to be able to, but it
currently
cannot. The wiring is all there in the Accessibility API, but GUI
Scripting
just doesn't do it.
Should this be considered a bug to report to BugReporter -
considering that it could very easily and doesn't? Another annoying
bit was the example syntax used by GUI elements for menus:
tell application "System Events"
tell process "Finder"
tell menu bar 1
tell menu bar item "View"
tell menu "View"
tell menu item "Arrange"
tell menu "Arrange"
click menu item "by Size"
end tell [...]
(This strongly reminds me of Scheme..) Wouldn't it just be easier
(and I'd think relatively algorithmic for System Events to do) for the
block to be
tell application "System Events"
tell process "Finder
tell menu bar 1 -- in here if there is more than one "menubar" -
perhaps 1 could be default
tell menu "View"
tell submenu "Arrange" -- this would be expanded to menu
and menu item
click menu item "by Size"
end tell [..]
Or is the convoluted syntax just a little inducement to get Prefab
Player?
Jim Witte
email@hidden
Indiana University CS
Jim Witte
email@hidden
Indiana University CS
_______________________________________________
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.