# Using AppleScript

Thinking Home supports AppleScript with a complete dictionary for referring to all items in a document. You can view the dictionary from any script editor. What is not visible there is the support for referring to devices in alternative ways. Just about any way you attempt to refer to a device will work. For example, the same device might be referred to as device 1, device “Coffee Maker”, first device, “C1”, device “C1”, device “Coffee Maker” of document “Home Sweet Home” of application “Thinking Home”, and so on. In addition, Thinking Home supports multiple ways of phrasing operations. For example, these three scripts are all equivalent…

tell application "Thinking Home"
| turn on the "Coffee Maker"
end tell

tell the "Coffee Maker" of application Thinking Home"
| turn on
end tell

tell application "Thinking Home"
| tell "Coffee Maker"
|  | turn on
| end tell
end tell

You can do each step above individually by following the links to the detailed procedures. If you prefer, Thinking Home can walk you through a basic setup of controllers and devices, then schedules.

Walk me through the basic setup