Re: Dates gone wild
Re: Dates gone wild
- Subject: Re: Dates gone wild
- From: Paul Berkowitz <email@hidden>
- Date: Tue, 09 Sep 2003 08:03:12 -0700
On 9/9/03 2:10 AM, "Nigel Garvey" <email@hidden>
wrote:
>
2a.
>
set ls to {}
>
set d to date "Friday, September 5, 2003 12:00:00 AM"
>
copy d to end of ls -- 'copy', not 'set'
>
set d's month to October
>
ls
>
--> {date "Friday, September 5, 2003 12:00:00 AM"}
Ah, yes. A neat method. Thanks.
>
>
Apologies for verbosity. ;-)
The person who might have appreciated that comment hasn't been around for
months...
I was aware (as I think my comments on exx. 1 and 2 should have made clear)
that I know about data sharing, but it's OK to spell it out. Axel made the
very good observation that I was being deceived in ex. 3 by my 'set d to
...' into thinking was making an assignment as in ex. 1, when in fact the
'set d to' was irrelevant and the deed was being done by the 'AddAMonth(d)'
call: ls (the list) was being modified there. Your extra detail spells it
out nicely.
--
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.