First of many... Alarm Clock script
Posted: Sun Nov 26, 2017 6:30 pm
Would appreciate some help with this is handy little script that changes the execution time for a schedule, With this I run my whole house alarm clock, which turns on the audio, speaks the weather, etc. I will likely need some help with those too....
- Code: Select all
using terms from application "IndigoServer"
set theCurrentDateTime to absolute trigger time of time date action "Radio WakeUP Actual WakeUp Time"
set AppleScript's text item delimiters to ":"
set theTargetTime to value of variable "RadioWakeUpDisplay"
set hours of theCurrentDateTime to (text item 1 of theTargetTime) as number
set minutes of theCurrentDateTime to (text item 2 of theTargetTime) as number
set absolute trigger time of time date action "Radio WakeUP Actual WakeUp Time" to theCurrentDateTime
set the value of the variable "RadioWakeUpEnabled" to "Yes, Actual Time"
end using terms from