<doc>
  <legacy_id>2219</legacy_id>
  <name>secureMode</name>
  <type>property</type>
  <syntax>
    <example>set the secureMode to true</example>
  </syntax>
  <library></library>
  <objects>
    <global/>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>The System Environment</category>
    <category>Files, Folders, &amp; Resources</category>
  </classification>
  <references>
    <command tag="launch">launch Command</command>
    <property tag="securityPermissions">securityPermissions Property</property>
    <property tag="securityCategories">securityCategories Property</property>
  </references>
  <history>
    <introduced version="1.0">Added.</introduced>
    <changed version="6.1.3">6.1.3</changed>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
    <ios/>
    <android/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
    <mobile/>
  </classes>
  <security>
  </security>
  <summary>Disables the <glossary tag="application">application's</glossary> ability to access <function tag="files">files</function> and run programs.</summary>
  <examples>
    <example>set the secureMode to true</example>
  </examples>
  <description>
    <p>Use the <b>secureMode</b> <glossary tag="property">property</glossary> to lock down <keyword tag="file">file</keyword> access in situations where security is required:  for example, for a kiosk application or <glossary tag="web server">web server</glossary>.</p><p/><p><b>Value:</b></p><p>The <b>secureMode</b> is true or false.</p><p/><p>By default, the <b>secureMode</b> <glossary tag="property">property</glossary> is set to false.</p><p/><p><b>Comments:</b></p><p>If the <b>secureMode</b> <glossary tag="property">property</glossary> is set to true, the <glossary tag="application">application</glossary> cannot use the <command tag="get">get</command>, <command tag="put">put</command>, <command tag="open file">open file</command>, <command tag="read from file">read from file</command>, or <command tag="write to file">write to file</command> <glossary tag="command">commands</glossary> to gain access to local <function tag="files">files</function>. The <glossary tag="application">application</glossary> cannot run programs with the <function tag="shell">shell</function> <control_st tag="function">function</control_st>, the <command tag="open process">open process</command> <glossary tag="command">command</glossary>, or the  <command tag="launch">launch</command> <glossary tag="command">command</glossary>. On <glossary tag="Windows">Windows systems</glossary>, it cannot use the <function tag="deleteRegistry">deleteRegistry</function>, <function tag="queryRegistry">queryRegistry</function>, or <function tag="setRegistry">setRegistry</function> <glossary tag="function">functions</glossary> to access the <glossary tag="registry">Windows system registry</glossary>.</p><p/><p>The application cannot access remote files with the <b>URL</b> <glossary tag="keyword">keyword</glossary>. The <glossary tag="application">application</glossary> can  open (but not save) <glossary tag="stack file">stack files</glossary>.</p><p/><p>If the application is started from a Unix or Windows command line, this property can be set to true on startup by using the<code> -f </code>option.</p><p/><p><code/><img src="202653"/> <b>Important!</b><code/> Once the <b>secureMode</b> <glossary tag="property">property</glossary> is set to true, it cannot be set back to false. To change it back to true, you must quit and restart the <glossary tag="application">application</glossary>.</p>
  </description>
</doc>