Forums > MaxMSP

Syntax for "types" msg to "folder" object?

May 1, 2007 | 11:37 pm

How do you specify file types for a "folder" object, in Windows?

Is it 3 letter extension eg. "AVI", or extension with "." eg. ".AVI", or wildcard eg. "*.AVI"?

I don’t seem to be getting consistent results with any of these – the folder object just sucks up all the files.


May 2, 2007 | 8:03 pm

Quote: gpvillamil wrote on Wed, 02 May 2007 01:37
—————————————————-
> How do you specify file types for a "folder" object, in Windows?
>
> Is it 3 letter extension eg. "AVI", or extension with "." eg. ".AVI", or wildcard eg. "*.AVI"?
>
> I don’t seem to be getting consistent results with any of these – the folder object just sucks up all the files.
—————————————————-

No.

Max began life as a Mac OS app, and the syntax for folder is based on classic Mac OS "type" conventions, which are *n*o*t* filename extensions.

Types are case-sensitive four-character codes (actually, a 32-bit number conventionally represented by four ASCII characters). The mappings from the antediluvian MS-DOS filename extensions are set up in your Cycling ’74/init/ folder. Take a look at max-fileformats for examples, then create your own gpvillamil-fileformats.txt file that maps .avi to, "AVI " or basically anything that isn’t already taken.


May 2, 2007 | 8:22 pm

That’s great, that did the trick. .avi is mapped to VfW, which sort of makes sense.


Viewing 3 posts - 1 through 3 (of 3 total)