passing file name to

Jun 2, 2010 at 12:58pm

passing file name to

I think this is simple, I am building this movie playlist based on someone’s post, now I need to pass the clicked file name to the but it gives an error saying that couldn’t find the file, can someone help me please???

thanks in advance

– Pasted Max Patch, click to expand. –
Jun 2, 2010 at 2:22pm

Problem is likely your pathnames. If you hook a dropzone to [prepend read] to [] you’ll see it passes along the absolute file name. Unless the folder you are dropping is already in the Max search path, it won’t see it if you only pass the file name.

Look in the sprintf help file and double click p More-Examples, you’ll see an example for how to reconnect the file path back on to a filename.

Jun 3, 2010 at 9:51am

Thanks, the sprintf object solved my problem. Perhaps this can be optimized, but here’s the patch, might me useful for someone.

– Pasted Max Patch, click to expand. –

You must be logged in to reply to this topic.