<doc>
  <legacy_id>1365</legacy_id>
  <name>reply</name>
  <type>command</type>
  <syntax>
    <example>reply <i>string</i> [with keyword <i>aeKeyword</i>]</example>
    <example>reply error <i>string</i></example>
  </syntax>
  <library></library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>The System Environment</category>
    <category>Networks &amp; Communication</category>
  </classification>
  <references>
    <command tag="send to program">send to program Command</command>
  </references>
  <history>
    <introduced version="1.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
  </classes>
  <security>
  </security>
  <summary><glossary tag="return">Returns</glossary> data to an application that sent LiveCode an <glossary tag="Apple Event">Apple event</glossary>.</summary>
  <examples>
    <example>reply "Connection established"</example>
    <example>reply line thisLine of field "AE Replies"</example>
    <example>reply "45" with keyword "errn"</example>
    <example>reply error "Not found."</example>
  </examples>
  <description>
    <p>Use the <b>reply</b> <glossary tag="command">command</glossary> to interact with another application via <glossary tag="Apple Event">Apple events</glossary>.</p><p/><p><b>Parameters:</b></p><p>The <i>string</i> is the <keyword tag="string">string</keyword> to send as <glossary tag="Apple Event">Apple event</glossary> data.</p><p/><p>The <i>aeKeyword</i> is the <glossary tag="Apple Event">Apple event</glossary> keyword.</p><p/><p><b>Comments:</b></p><p>The <b>reply</b> <glossary tag="command">command</glossary> for inter-application communication is analogous to the <constant tag="return">return</constant> <glossary tag="control structure">control structure</glossary> for inter-handler communication.</p><p/><p>When a program responds to an Apple event, it returns several different pieces of information. Each piece corresponds to an Apple event keyword. Use the<code> reply with aeKeyword f</code>orm of this command to specify which pieces you want to reply with.</p><p/><p>The form</p><p><code>  reply <i>string</i></code></p><p>is equivalent t<code>o</code></p><p><code>  reply <i>string</i> with keyword "----"</code></p><p/><p>The form</p><p><code>  reply error <i>string</i></code></p><p>is equivalent t<code>o</code></p><p><code>  reply <i>string</i> with keyword "errs"</code></p><p/><p>For more information about Apple events, see Apple Computer's technical documentation, <i>Inside Macintosh: Interapplication Communication</i>, located at &lt;<u>http://developer.apple.com/techpubs/mac/IAC/IAC-2.html</u>&gt;.</p>
  </description>
</doc>