SetFileInfo

Description:

baSetFileInfo sets the type and creator of a file.

Platforms:

Macintosh

Usage:

Result = baSetFileInfo( FileName, Type, Creator )

Arguments:

String.
FileName is the file to set the information of.
Type is the four character Type code.
Creator is the four character Creator code.

Returns:

Integer.
Returns 1 if successful, otherwise 0.

Examples:

Director:
ok = baSetFileInfo( "HD:Data:myFile.pdf", " PDF", "CARO" )

Authorware:
OK := baFileType( "HD:Data:myFile.pdf", " PDF", "CARO" )
 

Notes:

You can pass in an empty string for either the Type or Creator and the files present Type or Creator will not be changed.
 

See also:

baFileCreator
baFileType