This would really help me out with a project where I want to dynamically alter how fast it repeats.
> True, but implementing a variable for the repeat interval is a lot easier.
I agree a variable repeat would be nice however,
I am probably missing something here but I would think it would only take a few actions.
Plus, I would like to maintain a "nine to five" start stop without having to do weird time math to wrap around the "5" using your technique.
Not sure what you mean by wrap around the "5"?
I believe whatever math you use to set a variable repeat context should be just as easy to set a variable time context.
IE.. you want to repeat every 5 min you would add 5 min to the variable time context.
Profile 1 - One context: Time: 9am to 5pm. Just make one action (Anchor) in the Enter Task.
Profile 2 - Two contexts: here you should have your task which will run every x minutes.
A- Profile State: Select Above one.
B- Time: %EvenTime to %EvenTime
At the end of task just add one Set Variable action:
%EvenTime = %TIMES+(%Interval*60)
If you want intervals in hours just change 60 to 3600 but %Interval should not be more than 24.
One more thing, for the 1st run you need to set %EvenTime manually or just make one more Task with actions to set %EvenTime and make home shortcut for this task.
I hope I was clear.
I appreciate everyone's input, and there are workarounds, but simply having a variable for the interval is a very easy solution that doesn't require multiple profiles or trigger actions or complex interval math.
In the 1st profile of my above suggestion, just make an Exit Task (no need for the Enter one) and insert one action.
Set Variable: Set %EvenTime to 09.00
Yes, you were clear, but that doesnt solve my example case. At 5pm, when the profile is supposed to stop, I would have to calculate %internal with an extra 16 hours so that it "wraps around" back to 9am.
I appreciate everyone's input, and there are workarounds, but simply having a variable for the interval is a very easy solution that doesn't require multiple profiles or trigger actions or complex interval math.