IIRC you need the command 'open' to run some commands on MacOSX (if they are not in the usual /usr/bin directory, or similar).
for using pdsend on MacOS I had to this: echo "YOUR_DATA";|/Applications/Pd-extended.app/Contents/Resources/bin/pdsend PORT
I'd open the Pd application by open /Applications/Pd-extended.app
(just make sure to replace Pd-extended.app by whatever Pd you use)
So, if you are creating scripts that are to be portable between linux and MacOS you should check for OS first and then construct your commands accordingly.
Another note, somewhat unrelated, is that the [shell] external does not behave in the same way on Linux and MacOS. pwd command, for example, in linux reports the directory from which I started Pd (which is what I expect), in MacOS, however, it always reports the root of the system. Ok, that's the only example that I stumbled upon but I only used it once for one thing (that was meant to run on both Mac and linux) :)
best
./MiS
On Sat, Mar 27, 2010 at 10:40 AM, Dan Wilcox danomatika@gmail.com wrote:
On Mar 27, 2010, at 1:46 PM, Dan Wilcox wrote:
On Mar 26, 2010, at 10:09 PM, errordeveloper@gmail.com wrote:
Dan, i am sorry but your function { } business is teribly misleading! it's gust alias pd="/path/to/app/bin/pd" that anyone would ever need ..
Yeah, I hadn't tried an alias. I think it's a better option.
Ok, I added the above information to the puredata.info docs. I was going to do it earlier, but the function definitions I was using originally were throwing annoying errors in places that call .bash_profile (Xcode). Now everything is peachy using aliases. I know it seems redundant to repost info thats now archive on the list ... but isn't the webpage wiki where most of these tips and tricks out to go anyway?
Dan Wilcox danomatika.com robotcowboy.com
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list