• 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: how do i launch a specific system preference?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >how do i launch a specific system preference? (From: Ken Victor <email@hidden>)

  • Prev by Date: how do i launch a specific system preference?
  • Next by Date: XML Parser for 10.2
  • Previous by thread: how do i launch a specific system preference?
  • Next by thread: Re: how do i launch a specific system preference?
  • Index(es):
    • Date
    • Thread