Views
Background
I wanted to be able to use some shell scripts using PD I wrote in Linux on MacOSX?, but the shell (Terminal) session does not know how to launch binaries from within Application Bundles.
On Linux, I can start pd by typing "pd" and hitting enter. On MacOSX?, I can start the Pd App by typing "open -a Pd-extended" ... but I'd rather be able access the pd binary within the bundle directly so one script can work in Linux and OSX.
How To
The fix is pretty simple: Add an alias to the binaries within Pd-extended.app to your shell session.
Add the following to ~/.bash_profile:
# pd commandline alias pd="/Applications/Pd-extended.app/Contents/Resources/bin/pd" alias pdsend="/Applications/Pd-extended.app/Contents/Resources/bin/pdsend" alias pdreceive="/Applications/Pd-extended.app/Contents/Resources/bin/pdreceive"
Restart the shell session and now the "pd", "pdsend", and "pdreceive" commands should launch their respective targets.
Notes
~/.bash_profile is in your home directory, so any changes are only applied to your user account.