Otherwise, all resource files currently opened by the application will be searched. Open the resource for the file fileName . An error can occur if the file doesn't exist or the file does not have a resource fork. If resourceRef is specified we limit our search to that resource file, otherwise we search all open resource forks in the application. If resourceRef is not specified it will return all the resource types found in every resource file currently opened by the application.
Several options are available that describe where and how the resource is stored.
If the -file option is specified then the resource will be written in the file pointed to by resourceRef , otherwise the most resently open resource will be used. For example, TEXT refers to the Macintosh resource type for text. All Macintosh resources must be of some type. See Macintosh documentation for a more complete list of resource types that are commonly used. Id you can use either the resource name or a resource number.