• 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: applescript-users digest, Vol 2 #452 - 14 msgs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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/


  • Prev by Date: Hmmm, look what I found.
  • Next by Date: repeat
  • Previous by thread: Re: Hmmm, look what I found.
  • Next by thread: repeat
  • Index(es):
    • Date
    • Thread