Time 'til next action?
Posted: Tue Jul 24, 2007 5:59 pm
The main window shows a value for time to next action. Is there a way to get this in an applescript?
Thanks,
Scott
Thanks,
Scott
Software Support and Home Automation Forum
https://forums.indigodomo.com/
using terms from application "IndigoServer"
on timeofnextevent()
set nextevent to date "Friday, April 4, 2025 12:00:00 AM"
repeat with thisevent in every time date action
if enabled of thisevent is true then
if (next trigger time of thisevent as date) < nextevent then
set nextevent to (next trigger time of thisevent as date)
end if
end if
end repeat
return nextevent
end timeofnextevent
on nameofnextevent()
set nextevent to date "Friday, April 4, 2025 12:00:00 AM"
repeat with thisevent in every time date action
if enabled of thisevent is true then
if (next trigger time of thisevent as date) < nextevent then
set nextevent to (next trigger time of thisevent as date)
set nexteventname to name of thisevent
end if
end if
end repeat
return nexteventname
end nameofnextevent
end using terms from