• 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
Coercion of a string to a record label?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Project Builder & AppleScript (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: Scripting Palm Desktop
  • Next by Date: More speed tests in offset handlers
  • Previous by thread: Re: Project Builder & AppleScript
  • Next by thread: Re: Project Builder & AppleScript
  • Index(es):
    • Date
    • Thread