• 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:Lookup Table
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re:Lookup Table


  • Subject: Re:Lookup Table
  • From: Walter Bushell <email@hidden>
  • Date: Mon, 24 Jan 2011 13:53:44 -0500


Records can be used for lookup. Just be sure to put the lookup in a try block if there is a possibility that what you are looking up is not in the record.

What good is an exists clause if it bombs when the item you are looking for does not exist? In the following example "exists fame of x" would fail because x does not have a fame label.



set x to {BuddhaNature:true, Diabolical:false, wealth:100}
if BuddhaNature in x then
{"yes", BuddhaNature of x, wealth of x}
else
"no"
end if

However, apparently Late Night Software does have a OSAX that does the trick at
<http://www.latenightsw.com/freeware/RecordTools/index.html>

which I haven't tried, but I seriously doubt they would post a bad product.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >getting focus, slow getting icon position in window (From: OzSanta <email@hidden>)
 >Re: getting focus, slow getting icon position in window (From: Michelle Steiner <email@hidden>)
 >Re: getting focus, slow getting icon position in window (From: Christopher Stone <email@hidden>)
 >Re: getting focus, slow getting icon position in window (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: A Lookup Function?
  • Next by Date: Re: A Lookup Function?
  • Previous by thread: Re: getting focus, slow getting icon position in window
  • Next by thread: Re: getting focus, slow getting icon position in window
  • Index(es):
    • Date
    • Thread