• 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
Re: iSub Toggle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iSub Toggle


  • Subject: Re: iSub Toggle
  • From: email@hidden
  • Date: Mon, 28 Jun 2004 08:50:42 -0400

Could someone tell me what the window in a window (as in the system prefs) is called?

tab group

What kind of a UI object it is?

AXTabGroup

And how to find out how to call it? Name or number, I don't care, but I don't know where to start.

-- A 'System Preferences' 'Sound' Utility Tab Group Radio Button cycling demonstration.

tell application "System Preferences"
activate -- Set 'System Preferences' as the front most process.

-- Display the 'Sound' Utility of 'System Preferences'.
set current pane to pane "com.apple.preference.sound"
end tell

tell application "System Events"
tell process "System Preferences"

tell tab group 1 of window "Sound"

click radio button "Output"
delay 2 -- Place your code here.

click radio button "Input"
delay 2 -- Place your code here.

click radio button "Sound Effects"
delay 2 -- Place your code here.

end tell

-- or

tell tab group 1 of window 1 -- Same as 'tell tab group 1 of window "Sound"'

click radio button 2 -- Same as 'click radio button "Output"'
delay 2 -- Place your code here.

click radio button 3 -- Same as 'click radio button "Input"'
delay 2 -- Place your code here.

click radio button 1 -- Same as 'click radio button "Sound Effects"'
delay 2 -- Place your code here.

end tell

end tell
end tell

--

SJWL
_______________________________________________
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.


  • Prev by Date: Newbie Trying to Write Script for Adobe Illustrator
  • Next by Date: Remote AppleEvents not 100% reliable?
  • Previous by thread: Re: iSub Toggle
  • Next by thread: removing a resource fork?
  • Index(es):
    • Date
    • Thread