Re: Date Variables that modify themselves! Huh?
Re: Date Variables that modify themselves! Huh?
- Subject: Re: Date Variables that modify themselves! Huh?
- From: Greg Strange <email@hidden>
- Date: Wed, 04 Jul 2001 09:19:05 -0500
on 7/4/01 8:17 AM, Guy Parker at email@hidden wrote:
>
I would prefer to use just one instance of "current date" since there is a
>
(small) risk that more than just the time could be different if it is used
>
twice.
I'm sure I have missed something in your question but you should try copying
the value of one to the other.
tell application "Finder"
set DateTimeNow to (current date)
copy DateTimeNow to DateTimeSend
set DelayTime to 10800 --set time to 3am
display dialog "These should both be identical:
" & (DateTimeNow as text) & "
" & (DateTimeSend as text)
set time of DateTimeSend to DelayTime
display dialog "These should both be different:
" & (DateTimeNow as text) & "
" & (DateTimeSend as text)
end tell
This worked for me.
HTH,
Greg Strange
--
Dysfunction:
The only consistent feature of all your
dissatisfying relationships is you.