Re: date/Snow Leopard changed
Re: date/Snow Leopard changed
- Subject: Re: date/Snow Leopard changed
- From: "Nigel Garvey" <email@hidden>
- Date: Mon, 7 Sep 2009 23:57:39 +0100
"Mark J. Reed" wrote on Mon, 7 Sep 2009 10:17:56 -0400:
>And actually, I'm coming to the conclusion that this is a bug. List
>assignment is supposed to logically occur in parallel, which is why
>this works:
>
>set {a,b} to {b,a}
>
>So you should be able to set all the components of a date at once with
>no side effects until they're all set to the given values.
'Twas ever thus. The target values are fetched first and then applied in
turn to the items on the left. Usually the items are separate entities,
so it looks like parallel setting. But when you're setting interdependent
properties of a date, the sequence often becomes apparent. To "cure"
this, I imagine the AppleScript engineers would have to write a special
process for setting dates when lists were used. Personally, I quite enjoy
the current behaviour. :)
NG
>On 9/7/09, Nigel Garvey <email@hidden> wrote:
>> It _does_ matter what order you set the day, month, and year, …
>> tell TestDate to set {its year, its month, its day, its hours, its
>> minutes, its seconds} to {2000, 1, 2, 3, 4, 5}
_______________________________________________
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