Re: applescript-users digest, Vol 2 #452 - 14 msgs
Re: applescript-users digest, Vol 2 #452 - 14 msgs
- Subject: Re: applescript-users digest, Vol 2 #452 - 14 msgs
- From: Daniel Shockley <email@hidden>
- Date: Fri, 2 Mar 2001 11:52:29 -0800 (PST)
>
Message: 2
>
From: Michelle Steiner <email@hidden>
>
Anyone know how to script a time machine? Whenever I try to compile
>
>
set yesterday to (previous time)
Here you go:
-------- Time Travel -----------
property secondsPerDay : 86400
set today to (current date)
set today to timeTravelBack(1) -- changes today to go back to yesterday
to timeTravelBack(numDays)
(current date) - numDays * secondsPerDay
end timeTravel
--------end time travel-----------
You can enter negative days to travel into the future, too.
They must use a hard-wired AppleScript for the TV show Seven Days, since they can't go any more or
less than that. Didn't anyone ever tell them about variables?
Hope that helps, :-)
=====
Daniel A. Shockley
email@hidden
http://www.danshockley.com
http://www.krioni.com
And now for a message from my sponsor... *grin*
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/