coll and write folder

Sep 3, 2006 at 10:33pm

coll and write folder

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.

#27460
Sep 5, 2006 at 1:29pm

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

#83092
Sep 5, 2006 at 1:38pm

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…

#83093
Sep 6, 2006 at 11:03am

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

#83094

You must be logged in to reply to this topic.