1

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 loadbang -> prefix ~/folder_name.

This works OK, but I don't want to store the folder in home. What I really want is to use Terminal to tell my standalone where to look, something like:

open -a standalone.app /var/folders/whatevercrazytempdirname/folder_name

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.

Thanks for any suggestions!

ThinkingStiff
  • 64,767
  • 30
  • 146
  • 239
theEricStone
  • 301
  • 1
  • 7

1 Answers1

1

I don't think there is a way to acquire runtime arguments in a Max standalone.

Perhaps you can have R write a text file to a standard directory (for example ~/Library/Application Support/MaxAppName/) that contains the whatevercrazytempdir path? The Max app could take it form there..

Alternatively, if R were to support udp networking, you could send Max an OSC message with the path.

Mattijs
  • 1,909
  • 3
  • 19
  • 28
  • I'll take a look at the UDP option, but I'm coming to the same conclusion about runtime arguments. Seems like something they really should support, but perhaps there just isn't big demand for it. – theEricStone Feb 08 '13 at 15:31