FileOpsObj.$openresources()

Function group Execute on client Platform(s)
FileOps NO All

Syntax

$openresources(cFilePath[,bReadonly=kFalse])

Description

Opens the resource fork of the specified file. This function applies to macOS only. Returns kTrue for success.

cFilePath is the pathname of the file for which the resource fork is to be opened. 

The bReadonly parameter is optional. It is a boolean which defaults to false. If you pass true, then $openresources() will open the resource fork in read-only mode. 

$openresources() returns a boolean value, which is true if the resource fork was successfully opened.