rez.putResource

Syntax rez.putResource (path, type, id, addr)

Params path is a path to the file into which you wish to place the resource.

type is a string4 indicating the type of resource you want to create.

id is the ID of the resource you want to create or replace.

addr is the address of the value containing the resource data to be moved.

Action Copies the resource data at addr into the resource fork of the file in path.

If a resource of type, id already exists, it is updated to contain the new data, retaining its name if it has one.

If no resource of type, id already exists, a new one with an empty name is created.

Returns True

Examples rez.putResource ("System:tmp", 'TEXT', 128, @user.name)
» 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.

To specify the resource by its name, use rez.putNamedResource.

See Also rez.getResource

rez.putNamedResource

rez.putStringResource

Discuss