Hi,
I still have a problem with Time/Date action :
when I create manually or via Applescript a Time/Date action, the next trigger is always wrong when I choose every x hours or x minutes !!!
I have just understand the bug : if I choose every 20 minutes and if it's 06:32, it should trigger at 06:52 then 07:12 and.....
In fact I noticed that the reference of the beginning is not the current time but the time since 00:00.
So, for my previous example it will be : 00:20, 00:40.....06:00, 06:20, 06:40, 07:00 !
That's a problem for me because I use a lot of scripts which define a time date action with countdown
Look at this example :
property MachineLaverDuree : 90 -- it is a variable containing how many minutes my washing machine will run. I use : set dureeProgrammation to (value of variable "MachineLaverDuree") * 60
tell application "IndigoServer"
set dureeProgrammation to MachineLaverDuree * 60
--return dureeProgrammation (it's 5400)
set actionProgrammee to make new time date action with properties {name:"_Remind machine à laver_", time trigger type:countdown, countdown delta:dureeProgrammation, auto delete:true}
--next I have a action step that send me an email
end tell
If I execute this script at 06:40 it will trigger at 07:30 and not at 08:10
In the previous version of Indigo 1.8, it worked correctly !
It could be interesting if you add a beginning time (also in applescript dictionnary) for the row every X hours and x minutes and if I leave it blank it should be the current time !
N.B : if I erase the value 0 in a field I have an annoying dialog that say "the value entered is not within range". It shouldn't appear if the field is blank, it should consider blank as 0.
Thanks in advance !