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

elanhickler's icon

I want to type a folder path into textedit object

c:\bla\bla\bla

and use whatever objects are needed to convert to

c:/bla/bla/bla

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.
http://www.elanhickler.com/_/folder_diving_problem.png

vichug's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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...

elanhickler's icon

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.