Inside Macintosh: QuickTime Reference
| Previous | Chapter Contents | Chapter Top | Next |
The count command
The count command counts the number of elements in a QuickTime Player object.
count: Return the number of elements of a particular class within an object
count reference -- the object whose elements are to be counted
each type class -- the class of the elements to be counted
Result: integer -- the number of elements
For example:
tell application "QuickTime Player"
count every track of movie ¬
"Sample Movie"
end tell
Result: 2
© 2000 Apple Computer, Inc.
Inside Macintosh: QuickTime Reference
| Previous | Chapter Contents | Chapter Top | Next |