Re: date question
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>) |