A way to check if a Max for Live device is in edit mode or not?
Is there a way to get the edit mode status of a max for live device? My device uses the "---" wildcard (patch ID) for some logic, and therefore doesn't work in edit mode because Max in edit mode doesn't convert it to a unique ID as it does in Live. If I have a way for Max to check for edit mode, I can substitute the "---" for a static number while I'm editing the device.
The answer is already in your question. Use "---" in a message box and check if it is a number or just ---
Great thank you. Alternatively, you can use [regexp].
Yes, nice. We can reduce it to 2 objects:

oh no, all the cpu cycles wasted here almost make my cry.[sel int] [route int] should do the same. :)
Lol! Didn’t know you could do that!
@ roman the thing is that the number is a string e.g. "023". So [sel int] would need another [fromsymbol] before it.
okay, so that happens when you live in the past and don´t use [loadmess]. :/
using the famous [110.load] from 1897 or a regular [loadbang]->[i ---] construction would leaves numbers untouched.
(and of course it only works with [route] and not with [select] - seems i did not have enough coffee yesterday)

to be honest, this is 7 objects. but i think it looks funny.

parlez vou =_---__==--- ?

this will work more universally as it does not depend on any --- stuff

;
max getruntime xxx
r xxx will receive load status
0 = loaded as device
1 = opened in max editor