stackFileType

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the stackFileType to <creator> & <type>
Summary

Specifies the creator signature and file type for saved stack files.

Introduced1.0
OSmac
Platformsdesktop, server
Example
set the stackFileType to "myapSTCK"
Values
NameTypeDescription
Value

The stackFileType is an eight- character string. The first four characters are the creator signature, and the last four are the file type. By default, the stackFileType is set to "RevoRSTK".

RelatedKeyword: binfile, file, URL, characters, character, resfile
Property: fileType
Command: create stack, save, open file
Function: stacks, files
Glossary: property, stack file, creator signature, type signature, standalone application, command
Object: stack
Description

Use the stackFileType property to ensure that stacks 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 system, a 4-character file type and 4-character creator signature are saved with it. The creator signature specifies which application owns the file, and the file type is used to determine which applications (other than the owner) can work with the file.

Note: LiveCode's creator signature is 'Revo'. The file type for a stack file created by LiveCode is 'RSTK'.

The stackFileType property is used to set the filetype and creator for stack files your application creates with the save command. (To specify the type signature|file type and creator for files created by the open file command or by putting data into a file, binfile, or resfile URL that doesn't yet exist, use the fileType property instead.)

The setting of this property has no effect on Unix and Windows systems.

Important: To avoid conflicts with other applications, register any new creator signatures with Apple Computer if you plan to distribute a stack or standalone application that uses this property.

Tagsfile system