command-line args for standalones?

Oct 2, 2007 at 4:51pm

command-line args for standalones?

Hey maxers –

Does anyone know if it’s possible to pass in arguments from a
command-line invocation of a max-created standalone app? Something
like this:

open maxapp.app 1 2 3 4

I scanned through the tutorials and list archives and didn’t find
anything; probably can’t be done.

brad

http://music.columbia.edu/~brad

#33931
Oct 2, 2007 at 5:00pm

On 2 oct. 07, at 18:51, garton@columbia.edu wrote:

> Hey maxers –
>
> Does anyone know if it’s possible to pass in arguments from a
> command-line invocation of a max-created standalone app? Something
> like this:
>
> open maxapp.app 1 2 3 4
>
> I scanned through the tutorials and list archives and didn’t find
> anything; probably can’t be done.

This is not supported, like for most UI applications. However, I’d
suggest that you create a script which takes those arguments, write
them in a file, open your maxapp, and ask your maxapp to look at that
file.

Best,
ej

#113677
Oct 2, 2007 at 5:40pm

Quoting Emmanuel Jourdan :

> This is not supported, like for most UI applications.

That’s what I suspected.

> However, I’d suggest that you create a script which takes
> those arguments, write them in a file, open your maxapp,
> and ask your maxapp to look at that file.

and that’s what I’ll do. Thanks!

brad

http://music.columbia.edu/~brad

#113678
Oct 2, 2007 at 9:30pm

Hi,

put the parameters into an environment variable and read it with proper object in maxmsp if any.

Rgds
Chris

Emmanuel Jourdan wrote:
> On 2 oct. 07, at 18:51, garton@columbia.edu wrote:
>
>> Hey maxers –
>>
>> Does anyone know if it’s possible to pass in arguments from a
>> command-line invocation of a max-created standalone app? Something
>> like this:
>>
>> open maxapp.app 1 2 3 4
>>
>> I scanned through the tutorials and list archives and didn’t find
>> anything; probably can’t be done.
>
> This is not supported, like for most UI applications. However, I’d
> suggest that you create a script which takes those arguments, write them
> in a file, open your maxapp, and ask your maxapp to look at that file.
>
> Best,
> ej
>
>
>
>

#113679

You must be logged in to reply to this topic.