<doc>
  <legacy_id>1692</legacy_id>
  <name>screenName</name>
  <type>function</type>
  <syntax>
    <example>the screenName</example>
    <example>screenName()</example>
  </syntax>
  <library></library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>The System Environment</category>
  </classification>
  <references>
    <command tag="open process">open process Command</command>
    <function tag="screenVendor">screenVendor Function</function>
    <function tag="shell">shell Function</function>
  </references>
  <history>
    <introduced version="1.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
  </classes>
  <security>
  </security>
  <summary><glossary tag="return">Returns</glossary> the name of the current screen.</summary>
  <examples>
    <example>the screenName</example>
    <example>put "myApp -d" &amp;&amp; the screenName into commandLine</example>
  </examples>
  <description>
    <p>Use the <b>screenName</b> <control_st tag="function">function</control_st> to control where applications that LiveCode starts up should appear.</p><p/><p><b>Value:</b></p><p>The <b>screenName</b> <control_st tag="function">function</control_st> <glossary tag="return">returns</glossary> a <keyword tag="string">string</keyword>.</p><p/><p><b>Comments:</b></p><p>On Unix systems, the <b>screenName</b> function <glossary tag="return">returns</glossary> the <keyword tag="string">string</keyword> provided by the XDisplayName <glossary tag="function call">function call</glossary>. When starting a <glossary tag="process">process</glossary> with the <command tag="open process">open process</command> <glossary tag="command">command</glossary> or the <function tag="shell">shell</function> <control_st tag="function">function</control_st>, if you want the <glossary tag="process">process</glossary> to appear on the same screen as LiveCode, use the <function tag="value">value</function> <glossary tag="return">returned</glossary> by the <b>screenName</b> as the <glossary tag="argument">argument</glossary> to the -d option.</p><p/><p>This function does not return a useful value on Mac OS and Windows systems.</p>
  </description>
</doc>