rez.putNamedResource

Syntax rez.putNamedResource (path, type, name, addr)

Params path is the path to the file to which the resource is to be added.

type is a string4 identifying the type of resource to be added.

name is a string identifying the name for the resource of type type to be added.

addr is the address of the data to be copied into the resource fork of the file at path.

Action Adds a resource of type type and named name to the file at path by copying the data stored at addr into that file's resource fork. The verb assigns a unique ID number to the resource as it adds it to the file.

Returns True

Examples rez.putnamedresource ("System:tmp", 'TEXT', "User's Name", @user.name)
» true

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

Notes If you wish to specify the ID for the resource rather than its name, you can use rez.putResource rather than this verb.

To add a string resource to a file, rez.putStringResource is easier to use.

See Also rez.putResource

rez.putStringResource

Discuss