Re: date arithmetic weirdness
Re: date arithmetic weirdness
- Subject: Re: date arithmetic weirdness
- From: Paul Berkowitz <email@hidden>
- Date: Sun, 31 Mar 2002 18:58:15 -0800
On 3/31/02 6:44 PM, "Michelle Steiner" <email@hidden> wrote:
>
When I try to run this script:
>
>
set a to "nov 3, 1997"
>
set b to "oct 9, 1997"
>
set c to "dec 1, 2002"
>
>
set foo to (date a) - (date b) --this line errors
>
set bar to (date c) - foo
>
>
I get this error
>
>
--> "Can't make date Thursday, October 9, 1997 12:00:00 AM" into a
>
number or date.
>
>
But if I substitute the literal "oct 9, 1997" for b in that line, the
>
script executes without problem.
Try throwing in a few 'get' s.
--
Paul Berkowitz
_______________________________________________
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.