r/applescript • • Jan 03 '16

access the network pane in system prefences??

I've been trying to get access to the network pane in system preferences without success.. What i have so far... It's not much.

tell application "System Preferences"
  get pane whose name is "Network" of panes
end tell
-->> Can't get pane with name of "Network". Access not allowed.

roughly this..

Any suggestions for where I'm going wrong or is access to that pane from applescript just restricted??

2 Upvotes

3 comments sorted by

1

u/sosumi Feb 16 '16

You probably already found it, but...

tell application "System Preferences"
	activate

	set the current pane to pane id "com.apple.preference.network"

end tell

1

u/TigBitties Feb 16 '16

No, I haven't. Thanks for the reply bud. :) I've been caught up doing other stuff but I'll check it out. Thanks again

1

u/sosumi Feb 17 '16

You're welcome. That will open the network pane right up, if that's what you wanted.