-
-
Save ryanmoon/b92e78c2bbf06d17e3bc to your computer and use it in GitHub Desktop.
My (working) attempt to get PT 11 to install successfully
This file contains 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 | |
# Copy the com.avid.bsd.DigiShoeTool Helper Tool | |
PHT_DIGISHOETOOL="/Library/PrivilegedHelperTools/com.avid.bsd.DigiShoeTool" | |
/bin/cp "/Applications/Pro Tools.app/Contents/Library/LaunchServices/com.avid.bsd.DigiShoeTool" $PHT_DIGISHOETOOL | |
/usr/sbin/chown root:wheel $PHT_DIGISHOETOOL | |
/bin/chmod 544 $PHT_DIGISHOETOOL | |
# Create the Launch Deamon Plist for com.avid.bsd.DigiShoeTool | |
PLIST="/Library/LaunchDaemons/com.avid.bsd.DigiShoeTool.plist" | |
FULL_PATH="/Library/PrivilegedHelperTools/com.avid.bsd.DigiShoeTool" | |
rm $PLIST # Make sure we are idempotent | |
/usr/libexec/PlistBuddy -c "Add Label string" $PLIST | |
/usr/libexec/PlistBuddy -c "Set Label com.avid.bsd.DigiShoeTool" $PLIST | |
/usr/libexec/PlistBuddy -c "Add MachServices dict" $PLIST | |
/usr/libexec/PlistBuddy -c "Add MachServices:com.avid.bsd.DigiShoeTool bool" $PLIST | |
/usr/libexec/PlistBuddy -c "Set MachServices:com.avid.bsd.DigiShoeTool 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 $FULL_PATH" $PLIST | |
/bin/launchctl load $PLIST |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment