• 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: second variable to call value from property list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: second variable to call value from property list


  • Subject: Re: second variable to call value from property list
  • From: Walter Ian Kaye <email@hidden>
  • Date: Fri, 23 Jan 2004 17:30:06 -0800

At 04:52p -0800 01/23/2004, Matthew Galaher didst inscribe upon an electronic papyrus:

I wish to call an email address associated with a client code (e.g. abc), so that if I'm working with client abc it'll bring up the email address for client manager email@hidden. I can't seems to use a variable to to call the varible holding the email. Below is what I'm shooting for. Any help would be greatly appreciated. Thanks

set clientName to "abc"
accountmanager_email(clientName)

on accountmanager_email(clientName)

set email_properties to {abc:"email@hidden", def:"email@hidden", ghi:"email@hidden", jkl:"email@hidden"}
set am_email_address to property of email_properties whose name is clientName
display dialog am_email_address
end accountmanager_email

1. Your terminology/nomenclature is incorrect. You are talking about a record
-- that is quite different from a property list (aka plist, the XML files
of which Apple is so fond).

2. Whose clauses don't work on records.

3. Because of #2, you'll have to come up with a different structure.
See recent threads about records...


-Walter
_______________________________________________
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: 
 >second variable to call value from property list (From: Matthew Galaher <email@hidden>)

  • Prev by Date: Re: Inheritance, Context, Scope, etc.
  • Next by Date: Re: Trouble with simple Find in FMP data base
  • Previous by thread: second variable to call value from property list
  • Next by thread: [iCal] where is the note, what is the sequence?
  • Index(es):
    • Date
    • Thread