Re: Checking a Record for a Field
Re: Checking a Record for a Field
- Subject: Re: Checking a Record for a Field
- From: Steve Mills <email@hidden>
- Date: Mon, 16 Nov 2015 19:06:42 +0000 (GMT)
- X_v_e_cd: 0efb04927a3962e974577a398eac6aeb
- X_v_r_cd: 16b5890ac9257b8c1c40636943dfd26c
On Nov 16, 2015, at 11:51 AM, Axel Luttgens <email@hidden> wrote:
Perhaps may you pick an "impossible" value for each of your arguments, in which case you could rely on the behavior of the & operator when applied to records.
For example, assuming none of your arguments may take missing value as a value:
on myCoolHandler(someRecord)
set someRecord to someRecord & {Field_1:missing value, Field_2:missing value, Field_3:missing value}
if Field_1 of someRecord is not missing value then
— do something with Field_1
end if
That won't help here. He wants to know if a field is present, not if its value is good.
Sent from iCloud's ridiculous UI, so, sorry about the formatting
_______________________________________________
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