• 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: AS/FMP: a list of fewer than two records
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AS/FMP: a list of fewer than two records


  • Subject: Re: AS/FMP: a list of fewer than two records
  • From: Michelle Steiner <email@hidden>
  • Date: Fri, 27 Feb 2004 12:16:19 -0700

On Feb 27, 2004, at 7:36 AM, Chap Harrison wrote:

I still can't deal with the case of zero records. I can't find a way to pose an "are you there?" query that doesn't throw some sort of "object not found" error when there are no qualifying records. It's like one of those Zen koans.

SHould I use an "on error" to identify this condition?

That should work. Or, as Chris N. suggested, check the type of the result; if it's a list, get a count of its items. Proceed from there.

-- Michelle

--
"My country, right or wrong: if right, to be kept right; and if wrong, to be set right."
Senator Carl Schurz of Missouri, 1899
_______________________________________________
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.


References: 
 >Re: AS/FMP: a list of fewer than two records (From: Gary Lists <email@hidden>)
 >Re: AS/FMP: a list of fewer than two records (From: Chap Harrison <email@hidden>)

  • Prev by Date: Re: sine and cosine functions
  • Next by Date: Disk Quota Notification
  • Previous by thread: Re: AS/FMP: a list of fewer than two records
  • Next by thread: Enabling and Attaching Folder Actions
  • Index(es):
    • Date
    • Thread