fileType | |||||||
Type | property | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Summary | Specifies the creator and file type for any non- stack files a handler creates on a Mac OS or OS X system. | ||||||
Introduced | 1.0 | ||||||
OS | mac, ios | ||||||
Platforms | desktop, server, mobile | ||||||
Example |
| ||||||
Values |
| ||||||
Related | Keyword: file, characters, string, character, binfile, URL, resfile Property: filename, stackFileType Command: rename, save, open file Function: files Glossary: property, OS X, handler, type signature, stack file, case-sensitive, Mac OS, standalone application, creator signature, command Object: stack | ||||||
Description | Use the fileType property to ensure that files that a standalone application creates are recognized by the operating system as belonging to the standalone.
When a file is saved on a Mac OS or OS X system, a 4-character file type and 4-character creator signature are saved with it. The creator signature specifies which application owns the file. The application determines the file format from the file type; the type is also used to determine which applications (other than the owner) can work with the file. The fileType property is used to set the file type and creator of files created by the open file command and of files created putting data into a file, binfile, or resfile URL that doesn't yet exist. (To specify the type signature|file type and creator for stack file|stack files your application creates with the save command, use the stackFileType property instead.) This property has no effect on Unix and Windows systems.
| ||||||
Tags | file system |