Monday, November 08, 2010 at 12:01 AM.

system.verbs.apps.Finder.count

on count (obj, each) { <<Return the number of elements of a particular class within an object
	return (appleEvent (Finder.id, 'core', 'cnte', '----', Finder.finderSpec (obj), 'kocl', string4 (each)))}



This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.