Created
June 3, 2015 13:31
-
-
Save neilmartin83/eb4b5e893475f1f36637 to your computer and use it in GitHub Desktop.
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/sh | |
## postinstall | |
/usr/bin/defaults write $3/Library/Preferences/com.airmusictech.Boom Content -string "/Applications/AIR Music Technology/Boom" | |
/usr/bin/defaults write $3/Library/Preferences/com.airmusictech.Mini\ Grand Content -string "/Applications/AIR Music Technology/Mini Grand" | |
/usr/bin/defaults write $3/Library/Preferences/com.airmusictech.Xpand\!2 Content -string "/Applications/AIR Music Technology/Xpand!2" | |
/bin/chmod 644 $3/Library/Preferences/com.airmusictech.Boom.plist | |
/bin/chmod 644 $3/Library/Preferences/com.airmusictech.Mini\ Grand.plist | |
/bin/chmod 644 $3/Library/Preferences/com.airmusictech.Xpand\!2.plist | |
exit 0 ## Success |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This solves the issue of the AIR virtual instruments not knowing the path to their respective content (.big) files when being launched for the first time.
Thanks to Tim Sutton for the original inspiration for scripting this in postinstall (better than what I was doing before - dumping the plist files in the User Template!) - slight tweaks added to set correct permissions and make things a bit more idempotent.