I want to be able to write a single "status" Applescript to rule them all, so that when something is triggered (for example, a lamp gets turned on), I can take that "unknown" devices that changed status, and use the name in an Applescript (to send an iMessage).
I have everything working, except how to detect the name of the device. How can I reference this name without hard coding the device reference into the script?