AECountItems
AECountItems Count number of descriptor records in a descriptor list
#include <AppleEvents.h> Apple Event Manager
OSErr AECountItems ( theAEDescList, theCount );
AEDescList * theAEDescList ; descriptor list to be counted
long *theCount ; the number of descriptor records
returns Error Code; 0 = no error
You can use the AECountItems function to count the number of descriptor
records in any descriptor list.
The AECountItems function counts the number of descriptor records in a
descriptor list.
The parameter theAEDescList is the descriptor list to be counted.
The AECountItems function returns the number of descriptor records in the
list in the parameter theCount.
For an example program showing use of AECountItems, see the description
of Open Documents Event.
Result codes
noErr (0) No error
errAENotAEDesc (-1704) Not a valid descriptor record