• 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: List oddity
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: List oddity


  • Subject: Re: List oddity
  • From: Stan Cleveland <email@hidden>
  • Date: Tue, 03 Aug 2010 12:00:30 -0700

On Aug 3, 2010, at 3:47 AM, Nigel Garvey wrote:

> It's been like that for many years. For some reason, when you directly
> coerce a list containing a reference in its source code, the items at
> and after the reference don't appear in the result. You have to 'get'
> the list first to resolve the reference(s).
>
> Similarly:
>
>  property mnths : {"Jan.", "Feb.", "March", "April", "May", "June",
> "July", "Aug.", "Sept.", "Oct.", "Nov.", "Dec."}
>
>  set m1 to item 1 of mnths
>  {m1} = {item 1 of mnths}
>  --> false

Ah. That being the case, then it's probably more efficient to "get" each list
reference item only, not the entire, larger list:
   set weekString to {get item startMonth of mnths, startDay, "‹", endDay} as text

Plus there's an additional simplification--parentheses are no longer required.

Stan C.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Re: List oddity (From: "Nigel Garvey" <email@hidden>)

  • Prev by Date: Re: Show differences in two apple scripts.
  • Next by Date: Re: List oddity
  • Previous by thread: Re: List oddity
  • Next by thread: Re: List oddity
  • Index(es):
    • Date
    • Thread