Setting System Preferences Programatically
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.