Author Topic: System Events  (Read 1407 times)

0 Members and 1 Guest are viewing this topic.

Offline Jean-Marie Schwartz

  • Sr. Member
  • ****
  • Posts: 441
  • Karma: 6
  • Gender: Male
System Events
« on: June 06, 2008, 03:05:18 AM »
Hi all,

Surely many of you already know this but in AppleScript "get entire contents of [application process "XXX", window "XXX", menu "XXX", etc.]" returns all the UI elements accessible at that level. That's absolutely fantastic! So far I used to go step by step (getting every UI element of...) and was very often bored of trying one button, then another one... Even if things are not always very clear yet it helps "enormously" cause it goes deeper. At least it helps me.

EDIT: The "get" command is to be wrapped in a tell block (tell application "System Events").
« Last Edit: June 06, 2008, 05:17:31 AM by Jean-Marie Schwartz »
Jean-Marie Schwartz
May the Schwartz be with you :-)

= Mac Pro Quad-Core Intel 2.8 GHz 10 Go 1066 MHz DDR3 Mac OS 10.8.5 QuarkXPress 9.5.4.1 Adobe CS5 =