Congratulations to Jill B. for her useful idea!
She uses Thinking Home to notify her when someone is in her home and she’s away during the work day. The police nabbed an intruder with the help of this simple set up.
A motion sensor (Winplus HA107) watches the back room, near the door. When it sees motion, it signals. Jill’s controller (Winplus HA125) connected to her Mac gets the signal and passes it on to Thinking Home.
She created a simple responder script to check the time (work hours) and send a text message to her cell phone. This is the script:
-- This script is run by Thinking Home when the motion sensor sees something.
-- If I’m away at work in the office, I want to know ASAP.
set dayOfTheWeek to the weekday of the (current date)
set hourOfTheDay to the (time of the (current date)) div 3600
if dayOfTheWeek is not in {"Saturday", "Sunday"} and ↵
hourOfTheDay ≥ 9 and hourOfTheDay ≤ 17 then
tell application "iChat" to send "Motion in the sun room!" to buddy "jillPhone"
end if
Here are a few more details showing how to set this up yourself.