Forums > MaxMSP

symbol and script confusion

February 24, 2007 | 3:24 pm

Hi,

I am working on a patch that loads images into named jit.qt.movie objects using scripts sent to thispatcher. File names without spaces are fine but I seem to be encountering some incosistent behaviour with files whose names contain spaces. Here is an example. It assumes the image is in the seach path. I have uploaded the image as well.

any suggestions would be most appreciated, don

#P window setfont "Sans Serif" 9.;
#P window linecount 5;
#P comment 504 103 98 196617 for me the most confusing thing is that clicking here does not work either!;
#P window linecount 3;
#P comment 350 27 61 196617 click here (this does not work);
#P window linecount 1;
#P newex 314 95 62 196617 prepend set;
#P newex 293 54 51 196617 tosymbol;
#P newex 91 96 46 196617 metro 5;
#P toggle 91 76 15 0;
#P user jit.pwindow 90 142 82 62 0 1 0 0 1 0;
#P message 107 37 175 196617 script send amovie read "ste ph.jpg";
#B color 9;
#P message 293 35 54 196617 ste ph.jpg;
#B color 9;
#P message 314 114 185 196617 script send amovie read "ste ph.jpg";
#B color 5;
#P newex 293 74 203 196617 sprintf script send amovie read \\"%s\\";
#N thispatcher;
#Q end;
#P newobj 293 138 61 196617 thispatcher;
#P newex 91 118 80 196617 jit.qt.movie;
#P objectname amovie;
#P comment 15 120 71 196617 name: amovie;
#P window linecount 5;
#P comment 185 142 100 196617 use a qt type file whose name has a space in it. i am using a file called: ste ph.jpg;
#P window linecount 2;
#P comment 37 31 65 196617 click here (this works);
#P connect 10 0 11 0;
#P connect 11 0 3 0;
#P connect 3 0 9 0;
#P connect 7 0 12 0;
#P connect 12 0 5 0;
#P connect 5 0 4 0;
#P connect 8 0 4 0;
#P connect 6 0 4 0;
#P connect 5 0 13 0;
#P connect 13 0 6 0;
#P window clipboard copycount 16;



jln
February 24, 2007 | 4:32 pm


February 24, 2007 | 5:09 pm



jln
February 24, 2007 | 6:13 pm


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