How to check whether a message port exists
Posted: Thu Nov 14, 2013 12:14 am
How to check whether a message port actually is existing or not. If a message gets send to a message port that does not exist, the script unfortunately aborts.
Do hollywood functions return a value on execution? Would something similar to
if sendmessage ("BLA", "BLUP") = false then Debugprint ("failed to send message") work? This particular syntax doesn't work at least, but something like that maybe as you oftenly use with C?
Do hollywood functions return a value on execution? Would something similar to
if sendmessage ("BLA", "BLUP") = false then Debugprint ("failed to send message") work? This particular syntax doesn't work at least, but something like that maybe as you oftenly use with C?