• 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: Dates gone wild
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Dates gone wild (From: Nigel Garvey <email@hidden>)

  • Prev by Date: Re: Dates gone wild
  • Next by Date: Re: Dates gone wild
  • Previous by thread: Re: Dates gone wild
  • Next by thread: Re: Dates gone wild
  • Index(es):
    • Date
    • Thread