writing in a specific folder

Nov 12, 2006 at 9:58am

writing in a specific folder

I just can’t find a way to tell the pattrstorage to save in a
specified path. I know how it should be done but it simply doesn’t work.
The patch down here simply saves in the max help folder. I don’t know
how to define a different path.

Any idea?

Thanks in advance

b.
______________________________
max v2;
#N vpatcher 10 59 289 371;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P message 41 220 95 196617 patchname_hoiho;
#P newex 42 194 62 196617 prepend set;
#B color 5;
#P button 141 41 19 0;
#P newex 139 194 73 196617 prepend write;
#B color 5;
#P button 141 127 15 0;
#P message 139 144 57 196617 patchname;
#P newex 139 170 78 196617 sprintf %s_%s;
#B color 5;
#P newex 141 87 94 196617 dialog Enter Name;
#B color 5;
#P message 141 65 78 196617 symbol Untitled;
#P newex 139 219 67 196617 pattrstorage;
#B color 5;
#X autorestore patchname_hoiho;
#X client_rect 175 92 830 666;
#X storage_rect 167 89 827 580;
#P objectname u322000046;
#P connect 8 0 9 0;
#P fasten 3 0 8 0 144 190 47 190;
#P connect 5 0 4 0;
#P connect 4 0 3 0;
#P connect 3 0 6 0;
#P connect 6 0 0 0;
#P connect 7 0 1 0;
#P connect 1 0 2 0;
#P connect 2 0 5 0;
#P connect 2 0 3 1;
#P pop;

#28654
Nov 15, 2006 at 2:51am

you’ll have to enclose your path in quotes if there are any spaces within it;
something like [sprintf write "%s%s"] should do the trick.

jl

#88270

You must be logged in to reply to this topic.