rez.countResources

Syntax rez.countResources (path, type)

Params path is the path to the file whose resources you wish to count.

type is a string4 value defining the resource type you wish to count.

Action Counts the number of resources of type type in the file at path.

Returns The number of resources of indicated type in the file at path.

Examples rez.countResources ("System:System Folder:Finder", 'DLOG')
» 3

Platform Notes This verb is only implemented in the Mac OS version of Frontier.

Notes This is an advanced Frontier verb of primary interest to implementers and advanced scripters. It is not necessary to understand it to use Frontier effectively for most tasks.

Combined with rez.getNthResource, you can access all resources of a single type.

See Also rez.countResTypes

rez.getNthResource

Discuss