rez.getNthResource
| Syntax |
rez.getNthResource (path, type, n, addrName, addrData)
|
| Params |
path is a path to the file from which you wish to get the indicated resource. type is a string4 indicating the type of resource you want. n is the index of the resource you want returned. addrName is the address where the name of the returned resource is to be stored. addrData is the address where the data of the returned resource is to be stored.
|
| Action |
Gets a resource from a file, using the resource's index. Resources start at 1. If found, the Object Database cell pointed to by addrName is filled with the resource's name and the cell pointed to by addrData is set to be a binary value containing the data from the resource.
|
| Returns |
True if the resource was found, false otherwise
|
| Examples |
local (name, data); rez.getNthResource ("System:System Folder:TeachText", 'DLOG', 2, @name, @data) » true
|
| 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.getNthResType you can access all the resources in a file.
|
| See Also |
rez.getNthResType
|