Re: (2 of 2) Application Scripting Question - Theoretical? (was Re: Technote 2106 is da Bomb)
Re: (2 of 2) Application Scripting Question - Theoretical? (was Re: Technote 2106 is da Bomb)
- Subject: Re: (2 of 2) Application Scripting Question - Theoretical? (was Re: Technote 2106 is da Bomb)
- From: Axel Luttgens <email@hidden>
- Date: Wed, 14 Apr 2004 19:35:48 +0200
Nigel Garvey wrote:
[...]
What *is* strange is that 'set {1, 2, 3} to {4, 5, 6} doesn't error. I
currently have no theories about that.
My hypothesis is that the algorithm triggered by the "set {...} to
{...}" syntax is a very basic one, something like (pseudo-code):
for each item of the LHS list
if that item is "settable"
if there is a corresponding item in the RHS list
do the asignement
else
error
end
end
end
With, of course, "list" changed into "record" when needed.
Seems to be consistent with every case I could think of.
Axel
_______________________________________________
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.