• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Date Variables that modify themselves! Huh?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Date Variables that modify themselves! Huh? (From: Guy Parker <email@hidden>)

  • Prev by Date: Date Variables that modify themselves! Huh?
  • Next by Date: Re: Date Variables that modify themselves! Huh?
  • Previous by thread: Date Variables that modify themselves! Huh?
  • Next by thread: Re: Date Variables that modify themselves! Huh?
  • Index(es):
    • Date
    • Thread