gregjsmith wrote:Might you post a example here of using this in a applescript?
Sure. Make sure that the "time stamp attachment.scp" script is inside of your attachments folder. If you installed an older copy of Indigo, then you might have to dig it out of the Indigo package (Indigo isn't smart enough to copy updated scripts out of the package after you've launched the first time):
Indigo.app/Contents/Resources/First Run/Scripts/Attachments/
Then, from within an AppleScript Action (either embedded or external compiled script file), just call the function GetTimeStampForAddress(). For example,
tell app "Indigo"
log "office light last mod at " & GetTimeStampForDevice("office light")
log "A1 last mod at " & GetTimeStampForAddress("A1")
end tell
Note this function gives you the last time that particular X10 address (or device with that address) was received by the interface. It doesn't report time/dates if you modify the device within Indigo, or have Indigo send an X10 command. For that you can use the "last changed" property of the device object.
regards,
matt