• 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: Checking a Record for a Field
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Checking a Record for a Field


  • Subject: Re: Checking a Record for a Field
  • From: "S. J. Cunningham" <email@hidden>
  • Date: Mon, 16 Nov 2015 14:15:41 -0500

On Nov 16, 2015, at 2:06 PM, Steve Mills wrote:

> 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.

Actually, the suggestion would work but it would defeat the objective of passing a variable number of arguments to the handler. I'd have to pass every field on every call.

Steve
------------------
OS X 10.6.8, AppleScript 2.1.2


 _______________________________________________
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


  • Follow-Ups:
    • Re: Checking a Record for a Field
      • From: Axel Luttgens <email@hidden>
References: 
 >Re: Checking a Record for a Field (From: Steve Mills <email@hidden>)

  • Prev by Date: Re: Checking a Record for a Field
  • Next by Date: Re: Checking a Record for a Field
  • Previous by thread: Re: Checking a Record for a Field
  • Next by thread: Re: Checking a Record for a Field
  • Index(es):
    • Date
    • Thread