• 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
Setting System Preferences Programatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting System Preferences Programatically


  • Subject: Setting System Preferences Programatically
  • From: James Masasaki <email@hidden>
  • Date: Sat, 18 Oct 2003 20:35:55 -0700

Hi.

I want to modify the Network proxy settings in the System Preferences programatically.

I am aware of the System Configuration Framework. But I don't have time for that. I want to use MoreSCF to make the changes.

Is there a simple way to do this? Actually the only thing I care about is setting the web proxy name, port, and turning proxies on.

My ideal code would be:

OSStatus SetProxySettings( "proxy.domain.com", 8080, 1 ); // Set proxy name, port number, and turn proxies on.

I don't have time to get into the SCF agents & key/value pairs. I just want a simple way to do this with a few lines of code.

Also, is there *any* way to do this without triggering the authorization dialog? MoreSecurityTest says there is no way to avoid the dialog.

Thanks,

James
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Setting System Preferences Programatically
      • From: Bryan Pietrzak <email@hidden>
  • Prev by Date: Setting Proxy Settings Using MoreSCF
  • Next by Date: Re: Setting System Preferences Programatically
  • Previous by thread: Setting Proxy Settings Using MoreSCF
  • Next by thread: Re: Setting System Preferences Programatically
  • Index(es):
    • Date
    • Thread