In last night's webinar we briefly discussed how to send a message at a particular time. To do this in the desktop you can use the send in time command but this takes a delay time rather than a specific time. To work out the number of seconds between "now" and when you want to send the message you can do something along the lines of
Code: Select all
local tNow, tThen, tTimeDifference
put the date into tNow
convert tNow to seconds
put the label of button "year",the label of button "month", the label of button "date",the label of button "hour",the label of button "minute",the label of button "second",1 into tThen
convert tThen to seconds
put tThen - tNow into tTimeDifference
answer tTimeDifference
Kind regards
Elanor