- Code: Select all
make new time date action with properties {name:"someName", date trigger type:everyDay, next trigger time:"6:30am"}
how do I set the time for the next trigger time?
make new time date action with properties {name:"someName", date trigger type:everyDay, next trigger time:"6:30am"}
set theDate to current date
set hours of theDate to 15
set minutes of theDate to 0
set seconds of theDate to 0
make new time date action with properties {name:"someName", date trigger type:everyDay, time trigger type:absolute, absolute trigger time:theDate}
tell application "IndigoServer"
set theDate to current date
set hours of theDate to 15
set minutes of theDate to 0
set seconds of theDate to 0
make new time date action with properties {name:"someName", date trigger type:everyDay, time trigger type:absolute, absolute trigger time:theDate}
end tell
bob wrote:Is is possible to have this script place the TDA in a specific TIME DATE ACTION folder?
bob wrote:Is it possible with an Applescript to alter the time of an existing Time Date Action to have it action at a new time Sunset or Sunrise minus/plus x number of minutes? Or create with Applescript a new Time Date Action and specify its Action to run an Applescript?
make new time date action with properties {name:"Sunrise plus 10", date trigger type:everyDay, time trigger type:sunrise, sun delta:600}
tell application "IndigoServer"
set curTime to current date
set absolute trigger time of time date action "desk light schedule" to curTime + 10
end tell
hamw wrote:Will that then *permanently* set the schedule time, e.g. it won't revert to the origin schedule time after the next execution?
Users browsing this forum: No registered users and 19 guests