Re: how do i launch a specific system preference?
Re: how do i launch a specific system preference?
- Subject: Re: how do i launch a specific system preference?
- From: Lee Morgan <email@hidden>
- Date: Thu, 7 Oct 2004 21:41:26 -0400
Not that AppleScript is a better way, but you could call this from Cocoa... Aside from this and your method, I don't know of any better one.
tell application "System Preferences"
activate
set current pane to pane "com.apple.preference.universalaccess"
end tell
- lee
On Oct 7, 2004, at 9:20 PM, Ken Victor wrote:
i need to be able to launch the system preferences and have it set up to the first tab of the universal access panel. i can do this via:
[[NSWorkspace sharedWorkspace] openFile: @"/System/Library/PreferencePanes/UniversalAccessPref.prefPane"];
and it seems to work fine. i'm not sure though about hardcoding such a path into my app. is this the proper way to do this? or is there a better way?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden