script replace of objects

Elton Turcotte's icon

Is there a new scripting way of replacing objects (keeping their connections) with thispatcher? I only know the Max 4 way, which usually scrambles my fonts and is pretty cryptic. Simple example: I want to replace a [route 1 2 3 4] with [route 8 7 6 5].

The other annoyance of the old replace command is, that I have to know the exact coordinates of the object. Of course everybody wants it usually replaced at the same spot and size (like with the paste replace command I can invoke by hand...). In case I want it somewhere else, I know the position commands already...;-)

Max Gardener's icon

Is there any reason you couldn't include an unjoin 4 object whose outputs connect to the 2nd, 3rd, and 4th inlets of the route object and then bang a message like 8 7 6 5 into the route object? That's certainly keep everything connected....