The main window shows a value for time to next action. Is there a way to get this in an applescript?
Thanks,
Scott
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
Users browsing this forum: No registered users and 25 guests