• 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
Fwd: Using GUI Scripting to set window positions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Using GUI Scripting to set window positions
      • From: Bill Cheeseman <email@hidden>
  • Prev by Date: Re: Language issue
  • Next by Date: How to restrict choose file dialog for Filemaker files?
  • Previous by thread: Re: Using GUI Scripting to set window positions
  • Next by thread: Re: Using GUI Scripting to set window positions
  • Index(es):
    • Date
    • Thread