docServerUserLandCom picture
Contents
Frontier Site

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


© Copyright 1992-2026 UserLand Software. Email: webmaster@userland.com.