Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Get preference panel names for UI Scripting' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Get preference panel names for UI Scripting
Authored by: jakacmar on Mar 23, '04 03:06:56PM
I've run into this a few times myself in trying to help others on the Apple Discussion boards script System Prefs. When I need the name of a pane, I just get it from AppleScript. Open System Prefs, seelct the pane you want and run

tell application "System Preferences"
set thePane to the name of the current pane
display dialog thePane
end tell
I've found that some panes use "com.apple.preferences.xxxx" while others use "com.apple.preference.xxxx". Note the missing "s" in preference(s). Not sure why the discrepancy. Just another method to do the same.

[ Reply to This | # ]
Get preference panel names for UI Scripting
Authored by: SimonDorfman.com on Mar 23, '04 06:10:59PM
nice. i added copy to clipboard...

--open system preferences to desired panel, then run script to find out name.
tell application "System Preferences"
	set thePane to the name of the current pane
	set the clipboard to thePane
	display dialog thePane & return & return & "This has been copied to the clipboard."
end tell


[ Reply to This | # ]
Get preference panel names for UI Scripting
Authored by: ranker on Mar 24, '04 11:33:03AM
To get a list of all the preference panes do this:
tell application "System Preferences"
	name of panes
end tell


[ Reply to This | # ]