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

Re: date question


  • Subject: Re: date question
  • From: Andy Wylie <email@hidden>
  • Date: Sat, 23 Mar 2002 10:26:10 +1200

on 23/3/02 8:20 AM, David DuBois at email@hidden wrote:

> I'm working through writing a script and I'm having trouble with a date
> entry. Essentially what I want to do is if the current date is prior to a
> set time do one thing and if it is after that date do something else. I
> can't seem to get it right. Can anyone give a newbie a hand?
>

set yearAgo to (current date) - 365 * days
if yearAgo > (current date) then
say "take your medication"
else
say "still expanding capn"
end if
_____________________________ Andy
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >date question (From: "David DuBois " <email@hidden>)

  • Prev by Date: Re: Pagemaker script - urgent help needed
  • Next by Date: Re: Setting the Invisible Flag
  • Previous by thread: date question
  • Next by thread: Was: Is the picture_folder of the screensaver in OS X scriptable?
  • Index(es):
    • Date
    • Thread