• 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
countdown to failiure
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

countdown to failiure


  • Subject: countdown to failiure
  • From: Jason Ryant <email@hidden>
  • Date: Sun, 11 Mar 2001 21:24:01 -0800 (PST)

hi all. i would like to build a simplistic script consisting of two
variables: 1. the current date and time and, 2. the date and time
specified by the user. what i would like to happen is for the user to
specify a date [lets say new year's] and for the script to tell the user
how much time there is until then. i whipped up something like this:


property UserDate : date

if UserDate = "" then
set UserDate to
display dialog "Please enter a date to track" default
answer ""
else
set TimeRemaning to ((UserDate) - (current date))
display dialog TimeRemaning
end if


any scripter can see that it won't work, but this is the jist of what i
want to happen. another question: is there a way to only use the shortened
date [eg. DDMMYY] insted of the full day of the week and month and year
written out? what about just getting the current time? i'm probably
missing a few additions for that so any tips would be much appreciated.

TIA,
jason

:)

---
Q. What happens when Microsoft combines the attributes of Windows CE,
Windows Me, and Windows NT?
A. You get Windows CEMeNT -- "Hard as a rock, Dumb as a brick."


  • Follow-Ups:
    • Re: countdown to failiure
      • From: Sander Tekelenburg <email@hidden>
  • Prev by Date: Re: Comparing Two Lists
  • Next by Date: Re: COMPARING TWO LISTS
  • Previous by thread: Re: Help browser font size...
  • Next by thread: Re: countdown to failiure
  • Index(es):
    • Date
    • Thread