Re:Lookup Table
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
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