Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neilmartin83/eb4b5e893475f1f36637 to your computer and use it in GitHub Desktop.
Save neilmartin83/eb4b5e893475f1f36637 to your computer and use it in GitHub Desktop.
#!/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
@neilmartin83
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment