• 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: (2 of 2) Application Scripting Question - Theoretical? (was Re: Technote 2106 is da Bomb)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Re: (2 of 2) Application Scripting Question - Theoretical? (was Re: Technote 2106 is da Bomb) (From: Nigel Garvey <email@hidden>)

  • Prev by Date: Re: wordx & AS
  • Next by Date: Re: (no subject)
  • Previous by thread: Re: Set [list] to [value] strangeness
  • Next by thread: Re: (2 of 2) Application Scripting Question - Theoretical? (was Re: Technote 2106 is da Bomb)
  • Index(es):
    • Date
    • Thread