<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Mar 27, 2010, at 4:22 PM, Michal Seta wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>IIRC you need the command 'open' to run some commands on MacOSX &nbsp;(if<br>they are not in the usual /usr/bin directory, or similar).<br></div></blockquote><div><br></div><div>.. but, no I don't have to use open. &nbsp;I simply call the binary from inside the app bundle. &nbsp;I have been using this for a while now and it works fine. &nbsp;</div><div><br></div><div>pdsend, for example, is distributed in Pd-extended.app. &nbsp;How do I run it using open? &nbsp;"open -a Pd-Extended .... "?</div><br><blockquote type="cite"><div>for using pdsend on MacOS I had to this:<br>echo "YOUR_DATA";|/Applications/Pd-extended.app/Contents/Resources/bin/pdsend<br>PORT<br><br>I'd open the Pd application by<br>open /Applications/Pd-extended.app<br></div></blockquote><div><br></div><div>or&nbsp;</div><div><br></div><div>open -a Pd-extended</div><br><blockquote type="cite"><div>(just make sure to replace Pd-extended.app by whatever Pd you use)<br><br>So, if you are creating scripts that are to be portable between linux<br>and MacOS you should check for OS first and then construct your<br>commands accordingly.<font class="Apple-style-span" color="#000000"><font class="Apple-style-span" color="#144FAE"><br></font></font></div></blockquote><div><br></div>No, I don't have to. &nbsp;Why not just add 4 lines to .bash_profile ... isn't that what it's there for?<br><br><blockquote type="cite"><div>On Sat, Mar 27, 2010 at 10:40 AM, Dan Wilcox &lt;<a href="mailto:danomatika@gmail.com">danomatika@gmail.com</a>&gt; wrote:<br><blockquote type="cite"><br></blockquote><blockquote type="cite">On Mar 27, 2010, at 1:46 PM, Dan Wilcox wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On Mar 26, 2010, at 10:09 PM, <a href="mailto:errordeveloper@gmail.com">errordeveloper@gmail.com</a> wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Dan, i am sorry but your function { } business is teribly misleading!<br></blockquote><blockquote type="cite">it's gust alias pd="/path/to/app/bin/pd" that anyone would ever need ..<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Yeah, I hadn't tried an alias. &nbsp;I think it's a better option.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Ok, I added the above information to&nbsp;the <a href="http://puredata.info">puredata.info</a> docs. &nbsp;I was going to<br></blockquote><blockquote type="cite">do it earlier, but the function definitions I was using originally were<br></blockquote><blockquote type="cite">throwing annoying errors in places that call .bash_profile (Xcode). &nbsp;Now<br></blockquote><blockquote type="cite">everything is peachy using aliases.<br></blockquote><blockquote type="cite">I know it seems redundant to repost info thats now archive on the list ...<br></blockquote><blockquote type="cite">but isn't the webpage wiki where most of these tips and tricks out to go<br></blockquote><blockquote type="cite">anyway?</blockquote></div></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>--------</div><div>Dan Wilcox</div><div><a href="http://danomatika.com">danomatika.com</a></div><div><a href="http://robotcowboy.com">robotcowboy.com</a></div><div><br></div></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>
<br></body></html>