On 2006-09-25, at 15:18:07, has wrote:
AS doesn't provide an associative array type as standard,
However folks can get by using System Events property list items:
tell application "System Events" to activate
tell application "System Events"
set p1 to make new property list item with properties {kind:string, name:"mlle", value:"Jones"}
set n1 to "ml"
set n2 to "le"
set n to n1 & n2
set val to value of (item 1 of (every property list item whose name is n))
end tell
tell application "System Events" to quit
tell me to activate
val
--> "Jones"
as you can see from the above, it's implementation leaves something to be desired because if one runs the script multiple times,
every property list item