title: Open a file in a temp directory in Max/MSP standalone
body: <p>I have a Max/MSP standalone that looks for an external folder when it opens (it contains JSON files generated by R), which it does with <code>loadbang</code> -> <code>prefix ~/folder_name</code>. </p>
  
  <p>This works OK, but I don't want to store the folder in <code>home</code>.
  What I really want is to use Terminal to tell my standalone where to look, something like:</p>
  
  <pre><code>open -a standalone.app /var/folders/whatevercrazytempdirname/folder_name
  </code></pre>
  
  <p>But this doesn't work. Maybe I could establish a pipe between the program that generates the folder (R) and my standalone, but I don't know that this is possible with a Max/MSP standalone, and I haven't been able to find anyone who has done this.</p>
  
  <p>Thanks for any suggestions!</p>