Dialectic Indigo Script

Posted on
Wed Apr 25, 2012 12:34 pm
ckeyes888 offline
Posts: 1442
Joined: Nov 26, 2009
Location: Kalispell, MT

Re: Dialectic Indigo Script

Success! Dialectic seems to work very reliably in sending caller ID info to Indigo.

Here's the script that runs on an incoming call. Very fast as well. I now have an photo, name, number and the last time they
called up on my always on control page screen even before my house phone knows it.

This is especially nice as I can also have it announced on my outdoor speakers.

Code: Select all
on handle_incoming_call_action(contact_name, contact_number, phone_or_modem_name)
   try
      tell application "IndigoServer" of machine "eppc://TV:xxx@TV.local"
         # Log the number so we can see what it is
         log "call from " & (contact_number as string)
         log "call from " & (contact_name as string)
         set the value of variable "CIDnumber" to (contact_number as string)
         set the value of variable "CIDname" to (contact_name as string)
      end tell
   on error the_error
      activate
      display dialog "Error: " & the_error buttons {"OK"} default button 1 with icon 0 giving up after 20
   end try
end handle_incoming_call_action



Cheap too.

Carl

Who is online

Users browsing this forum: No registered users and 3 guests