Document directory
- 1.1 The Computer Administrator can set the function that requires admin to control the airport, which is provided for the first time in Mac OS X 10.5 leopard. It is easy to achieve in the GUI environment, see:
- 1.2 settings in Snow Leopard:
- 3. Disable finder from displaying the shared machine list in sidebar:
- 5. Force Safari 4 to open a new webpage in the tab
Mac OS X: Bash scripts series-10
-- Preferences examples
Here are several examples of modifying system behavior by modifying plist files:
1.1 The Computer Administrator can set the function that requires admin to control the airport, which is provided for the first time in Mac OS X 10.5 leopard. It is easy to achieve in the GUI environment, see:
Corresponding shell:
Plistbuddy-c "add $ currentset: Network: interface: EN1: Airport: requireadmin bool yes"/library/preferences/systemconfiguration/preferences. plist
1.2 settings in Snow Leopard:
Corresponding shell:
Plistbuddy-c "add $ currentset: Network: interface: EN1: Airport: requireadminpowertoggle bool yes"/library/preferences/systemconfiguration/preferences. plist
2. Forbid the user to open the shell of the preferences of the finder:
Defaults write com. Apple. Finder prohibitfinderpreferences-bool Yes
3. Disable finder from displaying the shared machine list in sidebar:
Plistbuddy-c "set: networkbrowser: customlistproperties: COM. Apple. networkbrowser. backtomymacenabled no"
Plistbuddy-c "Set
: Networkbrowser: customlistproperties: COM. Apple. networkbrowser. bonjourenabled
No"
Plistbuddy-c "Set
: Networkbrowser: customlistproperties: COM. Apple. networkbrowser. connectedenabled
No"
4. Automatic update prohibited
4. 1 disable automatic update of Mac OS X:
Softwareupdate -- schedule off
4.2 Disable Automatic Updates to MS Office 2004:
Defaults write com. Microsoft. AutoUpdate howtocheck-string "Manual"
4.3 Disable Automatic Updates to MS Office 2008:
Defaults write com. Microsoft. autoupdate2 howtocheck-string "Manual"
4.4 disable automatic update of Adobe CS3
Sed-I ""'s: <autocheck> 1 </autocheck>: <autocheck> 0 </autocheck> :'/
/Users/$ user/library/application/support/Adobe/updater5/adobeupdaterprefs. dat
4.5 disable automatic update of Adobe cs4
Sed-I ""'s: <autocheck> 1 </autocheck>: <autocheck> 0 </autocheck> :'/
/Users/$ user/library/application/support/Adobe/updater6/adobeupdaterprefs. dat
5. Force Safari 4 to open a new webpage in the tab
Defaults write com. Apple. Safari targetedclickscreatetabs-bool true