Re: Date anomaly
Re: Date anomaly
- Subject: Re: Date anomaly
- From: Christopher Nebel <email@hidden>
- Date: Mon, 3 Mar 2003 18:07:18 -0800
On Sunday, March 2, 2003, at 03:17 AM, John Delacour wrote:
At 10:33 am +0000 2/3/03, John Delacour wrote:
Can anyone explain why I'm getting this problem?
set d to "1/1/1"
date d
--> date "Monday, January 1, 2001 12:00:00 am"
(current date) - (date d)
--> Can't make date "Monday, January 1, 2001 12:00:00 am" into a
number or date.
Solved it, but this is new. It seems everything has to be GOT
nowadays :-<
As far as I can tell, this has never worked. I tried 1.1.2, 1.3.7,
1.8.3, and 1.9.1. It's a bug, or at least I'd consider it one --
something about not automatically evaluating object specifiers. ("date
d" isn't a date, it's an object specifier that refers to a date.) As
you discovered, an explicit "get" will clear this up.
--Chris Nebel
AppleScript Engineering
_______________________________________________
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.