Created
September 2, 2016 18:19
-
-
Save timsutton/d9d3f06562fab7ea431928eb6a341e78 to your computer and use it in GitHub Desktop.
Avid Pro Tools 12.5 postinstall script for use with Munki
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# from Neil Martin's guide: | |
# http://www.pro-tools-expert.com/home-page/2014/1/29/preparing-pro-tools-forautomatic-installation-in-a-mac-enter.html | |
# Adapted by Tim for PT 12.4 | |
SHOETOOL_NAME="com.avid.bsd.shoetoolv120" | |
PHT_SHOE="/Library/PrivilegedHelperTools/$SHOETOOL_NAME" | |
PLIST="/Library/LaunchDaemons/$SHOETOOL_NAME.plist" | |
# Copy the com.avid.bsd.shoetoolv120 Helper Tool | |
/bin/cp -f "/Applications/Pro Tools.app/Contents/Library/LaunchServices/$SHOETOOL_NAME" $PHT_SHOE | |
/usr/sbin/chown root:wheel $PHT_SHOE | |
/bin/chmod 544 $PHT_SHOE | |
# Create the Launch Deamon Plist for com.avid.bsd.shoe | |
rm $PLIST # In case Pro Tools has been updated from a previous version | |
/usr/libexec/PlistBuddy -c "Add Label string" $PLIST | |
/usr/libexec/PlistBuddy -c "Set Label $SHOETOOL_NAME" $PLIST | |
/usr/libexec/PlistBuddy -c "Add MachServices dict" $PLIST | |
/usr/libexec/PlistBuddy -c "Add MachServices:$SHOETOOL_NAME bool" $PLIST | |
/usr/libexec/PlistBuddy -c "Set MachServices:$SHOETOOL_NAME true" $PLIST | |
/usr/libexec/PlistBuddy -c "Add ProgramArguments array" $PLIST | |
/usr/libexec/PlistBuddy -c "Add ProgramArguments:0 string" $PLIST | |
/usr/libexec/PlistBuddy -c "Set ProgramArguments:0 $PHT_SHOE" $PLIST | |
/bin/launchctl load $PLIST | |
# added in from Media Composer 8.5.x, make the Avid Application Manager as quiet as possible | |
rm /Library/LaunchAgents/com.avid.ApplicationManager.plist | |
defaults write /Library/Preferences/com.avid.Application\ Manager enterpriseMode -bool true | |
defaults write /Library/Preferences/com.avid.Application\ Manager showAppNotifications -bool false | |
defaults write /Library/Preferences/com.avid.Application\ Manager showFeedsNotifications -bool false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment