Backslashes in window paths will be removed in text obj when dump out

keepsound's icon

I have a xml created by a win external app. This xml contains two win paths in form c:\directory\file... aka using backslashes. I can import this file using the obj [text], but when i dump out the content or recall the line that contains one of these paths, the backslashes will be removed and the path then will be c:directoryfile... , and that's not correct. How can I avoid that the obj [text] doesn't remove this backslashes? There is no way to change the original file or to make that the external app saves the file in another way... thanks...

rarasmus's icon

Try converting the line to [symbol] - backslashes are special characters in max, used as escape characters.

keepsound's icon

Thanks, but you can't. And I know that backslashes are special characters in Max. And they are visualized correctly when you open the file windows, but then when they are dumped out, they disappear. See picture. (Line 19, but same at line 15)


keepsound's icon

Seems there is no way to excape them in between.

keepsound's icon

Another note: everything should remain inside the max environment, no external editors are allowed. The final user of the app should not care about slashes or backslashes, paths or not paths, and the app just do automatically some editings on other lines of the xml file. To do this, you have to export the files content to a coll, and then reimport everything in a text object, to saveagain the original file. In this case, backslashes could also be normal slashes using a regexp @substitute object outside, but this too is not allowed because the outputted text is just without backslashes.... and you can't remove or substitute a text line in the text obj, without using his editor (open-wclose the main window).

keepsound's icon

There should only be an option for the text object that doubles the backslashes, or substitute them automatically with a slash. This is for win paths only, and they can be present in a file. Another thing: this is a bug report to cycling74.

ygreq's icon

Have you managed to resolve this?

keepsound's icon

No, I've not managed it. But try with [conformpath max boot]....

ygreq's icon

Thank you, Keepsound! I will try that