<doc>
  <legacy_id>1563</legacy_id>
  <name>stackFileType</name>
  <type>property</type>
  <syntax>
    <example>set the stackFileType to <i>creator</i> &amp; <i>type</i></example>
  </syntax>
  <library></library>
  <objects>
    <global/>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Files, Folders, &amp; Resources</category>
    <category>Standalone Applications</category>
  </classification>
  <references>
    <command tag="create stack">create stack Command</command>
    <property tag="fileType">fileType Property</property>
  </references>
  <history>
    <introduced version="1.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
  </classes>
  <security>
  </security>
  <summary>Specifies the <glossary tag="creator signature">creator signature</glossary> and <glossary tag="type signature">file type</glossary> for saved <glossary tag="stack file">stack files</glossary>.</summary>
  <examples>
    <example>set the stackFileType to "myapSTCK"</example>
  </examples>
  <description>
    <p>Use the <b>stackFileType</b> <glossary tag="property">property</glossary> to ensure that <function tag="stacks">stacks</function> that a <glossary tag="standalone application">standalone application</glossary> creates are recognized by the operating system as belonging to the <glossary tag="standalone application">standalone</glossary>.</p><p/><p><b>Value:</b></p><p>The <b>stackFileType</b> is an eight-<keyword tag="character">character</keyword> string. The first four <keyword tag="characters">characters</keyword> are the <glossary tag="creator signature">creator signature</glossary>, and the last four are the <glossary tag="type signature">file type</glossary>.</p><p/><p>By default, the <b>stackFileType</b> is set to "RevoRSTK".</p><p/><p><b>Comments:</b></p><p>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.</p><p/><p><code/><b>Note:</b><code/> LiveCode's <glossary tag="creator signature">creator signature</glossary> is '<code>Revo</code>'. The file type for a <glossary tag="stack file">stack file</glossary> created by LiveCode is '<code>RSTK</code>'.</p><p/><p>The <b>stackFileType</b> <glossary tag="property">property</glossary> is used to set the <glossary tag="type signature">file type</glossary> and <glossary tag="creator signature">creator</glossary> for <glossary tag="stack file">stack files</glossary> your application creates with the <command tag="save">save</command> <glossary tag="command">command</glossary>. (To specify the <glossary tag="type signature">file type</glossary> and <glossary tag="creator signature">creator</glossary> for <function tag="files">files</function> created by the <command tag="open file">open file</command> <glossary tag="command">command</glossary> or by putting data into a <keyword tag="file">file</keyword>, <keyword tag="binfile">binfile</keyword>, or <keyword tag="resfile">resfile</keyword> <keyword tag="URL">URL</keyword> that doesn't yet exist, use the <property tag="fileType">fileType</property> <glossary tag="property">property</glossary> instead.)</p><p/><p>The setting of this property has no effect on Unix and Windows systems.</p><p/><p><code/><img src="202653"/> <b>Important!</b><code/> To avoid conflicts with other applications, register any new <glossary tag="creator signature">creator signatures</glossary> with Apple Computer if you plan to distribute a <object tag="stack">stack</object> or <glossary tag="standalone application">standalone application</glossary> that uses this property.</p>
  </description>
</doc>