rez.getResourceAttributes

Syntax rez.getResourceAttributes (path, type, id)

Params path is a path to the file containing the resource whose attributes you want returned.

type is a string4 indicating the type of the resource.

ID is the id of the resource.

Action Locates the specified resource and retrieves its attributes setting.

Returns A 16-bit number containing the resource attributes.

Examples rez.getResourceAttributes ("System:TeachText", 'MENU', 1)
» 4

x = rez.getResourceAttributes ("System:TeachText", 'CODE', 0);
bit.get (x, 5) «test resPurgeable bit
» true

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

Errors If the specified resource isn't found, an error is generated.

See Also rez.setResourceAttributes

rez.getNthResInfo

Discuss