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. If the target resource already exists, then by default Tcl will not overwrite it, but raise an error instead. Use the -force flag to force overwriting the extant resource. For example, TEXT refers to the Macintosh resource type for text. All Macintosh resources must be of some type.