• 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: Cumulus Category
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cumulus Category


  • Subject: Re: Cumulus Category
  • From: "ken " <email@hidden>
  • Date: Fri, 25 Oct 2002 10:49:44 -0500

<<Does anyone know of a way to get all the
record names of a single category in a Cumulus
catalog?>>

Try this (watch for line breaks...):

Tell application "Cumulus"
Tell front collection

set searchString to "Categories" & tab & "is"
& tab & "yourCategoryNameHere"
find every record matching searchString
set theRecordCount to result -- gives a count
of the number of found records
set theRecordIDs to ID of every record
set theRecordNames to field "record name"
of every record

end tell
end tell


Basically, you do a search for the category and
pull your list from the found set. If you grab the
result of the search, you get a count of how
many were found so you don't have to count
them yourself. The best thing to do is get a list of
record IDs. I've also shown you how to get a list
of record names directly, but records can have
the same name (if you set it up that way), so the
list isn't as versatile. That's fine if that's all you
need to do is get the names, but if you need to
do anything else, I'd get the ID's and then you
can still operate on the same records even after
you no longer have the same found set in the
front collection.

Hope this helps.

Ken Fleisher

--
====================================================

"I just know that something good is going to happen..."
- Kate Bush

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

  • Prev by Date: Odd Entourage behavior
  • Next by Date: Clear Text passwords
  • Previous by thread: Cumulus Category
  • Next by thread: Odd Entourage behavior
  • Index(es):
    • Date
    • Thread