In the preferences pane under sharing I am trying to firstly uncheck “File Sharing”, then
check it back on again, can this be done with out UI scripting, using a shell script?
I am also under the “Options” window in sharing trying to check and un check “Share files and folders using SMB, and AFP”, I found the below on the web to check the above two, but I don’t no how to uncheck them
could some one please show me how it’s done, as I don’t no where else to look
Turns on AFP sharing
do shell script "/bin/launchctl load -w " & "/System/Library/LaunchDaemons/com.apple.AppleFileServer.plist" with administrator privileges
Turns on SMB sharing
do shell script "/bin/launchctl load -w " & "/System/Library/LaunchDaemons/com.apple.smbd.plist" with administrator privileges