Remove text from end of symbol

Feb 19, 2014 at 3:12am

Remove text from end of symbol

Hi there, I hope this hasn’t been answered elsewhere but I cannot find a solution to the problem I’m having.

It’s a fairly simple problem. Essentially, I want to remove some text from a symbol that is obtained from sending a path message to a thispatcher object. This outputs something like:

C:/Users/sxp823/Documents/Max/Octave/Patches

I want to take this symbol and remove the /Patches from the end so that it becomes:

C:/Users/sxp823/Documents/Max/Octave

Then I want to append text to the end so that it finally becomes:

C:/Users/sxp823/Documents/Max/Octave/Response

I’ve managed to append text using the combine object, but I can’t work out how to delete a bit of the text first.

Any ideas?

#281548
Feb 19, 2014 at 3:41am

Maybe this:
<code>

– Pasted Max Patch, click to expand. –

</code>

#281549
Feb 19, 2014 at 3:51am

That works perfectly, thank you Patrick!

#281550

You must be logged in to reply to this topic.