Re: List oddity
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