Forums > MaxMSP

I want to use textedit object with \ backslash, how?

May 03 2014 | 9:09 am

I want to type a folder path into textedit object


and use whatever objects are needed to convert to

c:/bla/bla/bla <– and send that to the folder object

I tried regexp, sprintf, tosymbol, fromsymbol, conformpath, not sure what I’m doing wrong.

The reason I’m using a textedit box instead of opendialog is because I don’t want to folder-dive. the Browse for Folder dialog has no input for folder.

  • This topic was modified 2 years by  argitoth.
May 03 2014 | 1:46 pm

the "\" is very problematic in Max. If you type \\\\ in textedit, it will output \\. You apparently cant output only one \ ; anyway you’ll need the supplementary \ based on how much tiems you will output it afterwards…

-- Pasted Max Patch, click to expand. --

May 03 2014 | 5:21 pm

I decided to use external text file, and replacing backslashes with forward slashes in that textfile, then Max doen’t have to do any path conversion. It’s the most convenient way I’ve found.

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

Forums > MaxMSP