Tag: plistbuddy
-
Create a Mac favorite/bookmark desktop shortcut with a script
If you want to create a bookmark for a webpage using a script (which, for example, you can run at user login), just create a script with this code: /usr/libexec/PlistBuddy -c “add :URL string ‘http://YOURWEBSITE.COM‘” ~/Desktop/BOOKMARK.webloc Just substitute in the actual website you want for YOURWEBSITE.COM and the actual name of the desktop short for…
-
Using Plistbuddy to delete a string from an array
I have two previous posts about using Plistbuddy to add to an array in a .plist file (specifically Munki’s SelfServeManifest file): Bash script to add optional installs for Munki Terminal command to mark a Munki optional install for installation What if you want to remove an item from the array? It’s not a simple thing…
-
Bash script to add optional installs for Munki
In Terminal command to mark a Munki optional install for installation, I showed a one-off command to mark a Munki optional install item for installation. What if you want to do it in bulk, though? For example, if you’re scripting a thin image to install some software by default, but you want the option for…
-
Terminal command to mark a Munki optional install for installation
If you’re a beginning Munki administrator, you’re probably pretty familiar with adding software to these categories: Managed Installs: Software that has to be installed on the client machine and does not appear as an optional install to be removed. Managed Uninstalls: Software that must be removed, so if it’s installed will be force-removed from the…