Forums > MaxMSP

coll and write folder


gio
September 3, 2006 | 10:33 pm

Does anyone know how to decide in witch folder coll should save the
file when received a write ‘filename’ message, so that you can save
stuff in a folder without having to use the save as dialogue… ?

cheers
b.


September 5, 2006 | 1:29 pm

bluermutt wrote:
> Does anyone know how to decide in witch folder coll should save the file
> when received a write ‘filename’ message, so that you can save stuff in
> a folder without having to use the save as dialogue… ?

Just combine the filepath with the filename to one complete filename:
[sprintf %s%s]-[tosymbol]-[prepend write]-[coll].
The tosymbol will take care of whitespace in the path…

Stefan


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com


September 5, 2006 | 1:38 pm

Note that sprintf has a "symout" argument which will eliminate the
need for tosymbol.

jb

Am 05.09.2006 um 15:29 schrieb Stefan Tiedje:

> Just combine the filepath with the filename to one complete
> filename: [sprintf %s%s]-[tosymbol]-[prepend write]-[coll].
> The tosymbol will take care of whitespace in the path…


September 6, 2006 | 11:03 am

Is there a complete summary available for manipulating strings and symbols in max? For me it’s still not completely clear when quotes are automatically added to or removed from strings, when something is a symbol and when it is a list, what tosymbol and fromsymbol do exactly, when the word ‘symbol’ is automatically prepended and how the %s in sprintf behaves with different types of input.

If there is no such guide maybe I’ll try to put something together myself some time.

Greets,
Mattijs


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