Coercion of a string to a record label?
Coercion of a string to a record label?
- Subject: Coercion of a string to a record label?
- From: Harald E Brandt <email@hidden>
- Date: Mon, 8 Oct 2001 22:24:02 +0200
Consider this:
set myRecord to {EU:"123", US:"789"}
EU of myRecord
--> "123"
That's easy, but I want "EU" to come from a string variable, like:
set aRegion to "EU"
However, I can obviously not do:
aRegion of myRecord
so I figured there ought to be some kind of:
(aRegion as ...) of myRecord
How should I accomplish what I want?
(AppleScript Language Guide gives me the impression that it is impossible, but there's got to be *some* way.....?)
--heb
______heb________________________________________________________________
Harald E Brandt email@hidden PGP/MIME aware
http://heb.bragit.com