resfile | |
Type | keyword |
Dictionary | LCS |
Library | LiveCode Script |
Syntax |
|
Summary | Used as a URL type with such commands as load and get to designate the resource fork of a Mac OS file. |
Introduced | 1.0 |
OS | mac |
Platforms | desktop, server |
Example |
|
Related | Keyword: URL, file, binfile, resfile Command: get, load, revCopyFile Function: result, setResource Control Structure: function Glossary: keyword, resource fork, resource, Mac OS, URL scheme, data fork |
Description | Use the resfile keyword to work with Mac OS resource forks. On Mac OS systems, files consist of either or both of a data fork and a resource fork. The resource fork contains defined resources such as icons, menu definitions, dialog boxes, fonts, and so forth. A URL container can be used anywhere another container type is used. The LiveCode-specific scheme "resfile" indicates the resource fork of a file which is located on the user's system. The file is specified by either an absolute path starting with "/", or a relative path from the defaultFolder. A resfile URL specifies the entire resource fork, not just one resource. The most common use for this URL scheme is to copy an entire resource fork from one file to another. To modify the data from a resfile URL, you need to understand the details of Apple's resource fork format and its relationship with the data fork.
|
Tags | file system |