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

second variable to call value from property list


  • Subject: second variable to call value from property list
  • From: Matthew Galaher <email@hidden>
  • Date: Fri, 23 Jan 2004 16:52:09 -0800

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
_______________________________________________
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.
  • Follow-Ups:
    • Re: second variable to call value from property list
      • From: Walter Ian Kaye <email@hidden>
  • Prev by Date: Re: UI Scripting and sub-sub-menus in Photoshop
  • Next by Date: Re: Fun with Keychain Scripting
  • Previous by thread: Re: Fun with Keychain Scripting
  • Next by thread: Re: second variable to call value from property list
  • Index(es):
    • Date
    • Thread