Forums > MaxMSP

Grabbing most recently loaded filename from a coll

October 15, 2007 | 6:15 pm

Hi folks,

I am trying to grab the filename of the most recently loaded text file in a coll. The same function exists for buffer~ and sfplay~, called info~ and sfinfo~. They can output the filename of the most recently loaded wave file, not the buffers name. I am trying to do the same for coll. I have read the helps and reference manual and was not able to find a way to do this.

Does anyone have any tips? Thanks in advance.

Cheers,
Richard


October 15, 2007 | 11:18 pm

you won’t get it from coll, but you can plan ahead and get it this way
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#N coll ;
#P newobj 76 150 53 196617 coll;
#P window linecount 0;
#P message 181 187 316 196617;
#P window linecount 1;
#P newex 177 159 62 196617 prepend set;
#P button 180 99 15 0;
#P newex 176 134 36 196617 zl reg;
#P newex 75 123 68 196617 prepend read;
#P button 75 69 15 0;
#P newex 75 96 56 196617 opendialog;
#P comment 196 101 119 196617 tell me the last file read;
#P connect 6 0 7 0;
#P connect 4 0 6 0;
#P connect 3 0 8 0;
#P connect 3 0 4 1;
#P connect 5 0 4 0;
#P connect 1 0 3 0;
#P connect 2 0 1 0;
#P window clipboard copycount 9;


October 16, 2007 | 11:08 pm

Hey Peter,

Thank you very much! Will try later today.

Cheers,
Richard


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