• 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: Michael Grant <email@hidden>
  • Date: Fri, 27 Feb 2004 09:06:55 -0600

On Feb 27, 2004, at 8: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?

Once you're sure your variable is a list (discussed yesterday--the way I would tackle it would probably be to initialize the variable as a list, then copy stuff to the end of it in my loop), you can use:

if ((count theList) > 0) then
-- do your thang
end if

Michael

--
Where are we going? And what am I doing in this handbasket?
_______________________________________________
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.


  • Follow-Ups:
    • Re: AS/FMP: a list of fewer than two records
      • From: Chap Harrison <email@hidden>
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: Applescript for Acrobat
  • Next by Date: Re: sine and cosine functions
  • Previous by thread: Re: AS/FMP: a list of fewer than two records
  • Next by thread: Re: AS/FMP: a list of fewer than two records
  • Index(es):
    • Date
    • Thread