<doc>
  <legacy_id>1823</legacy_id>
  <name>appleEvent</name>
  <type>message</type>
  <syntax>
    <example>appleEvent <i>class</i>,<i>ID</i>,<i>sender</i></example>
  </syntax>
  <library></library>
  <objects>
    <card/>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>The System Environment</category>
  </classification>
  <references>
    <command tag="send to program">send to program Command</command>
    <function tag="flushEvents">flushEvents Function</function>
  </references>
  <history>
    <introduced version="1.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
  </platforms>
  <classes>
    <desktop/>
    <web/>
  </classes>
  <security>
  </security>
  <summary>the <glossary tag="current card">current card</glossary> whenever the <glossary tag="application">application</glossary> receives an <glossary tag="Apple Event">Apple event</glossary>.</summary>
  <examples>
    <example>on appleEvent theClass,theID <i>-- execute a set of statements in a text file</i></p><p>  if theClass is "misc" and theID is "dosc" then</p><p>    request appleEvent data <i>-- get the content of the AppleEvent</i></p><p>    do URL ("file:" &amp; it)</p><p>  end if</p><p>  pass appleEvent</p><p>end appleEvent</example>
  </examples>
  <description>
    <p>Handle the <b>appleEvent</b> <keyword tag="message box">message</keyword> to respond to a custom <glossary tag="Apple Event">Apple event</glossary>, or one that you want to handle specially.</p><p/><p><b>Parameters:</b></p><p>The <i>class</i> and <i>ID</i> together identify the exact <glossary tag="Apple Event">Apple event</glossary> that was received.</p><p/><p>The <i>class</i> <glossary tag="parameter">parameter</glossary> is the <glossary tag="event">event</glossary> class: possible classes include aevt (for required Apple Events such as "open document" and "print"), misc (for miscellaneous events such as "do script"), and others.</p><p/><p>The <i>ID</i> <glossary tag="parameter">parameter</glossary> is the name of the specific <glossary tag="Apple Event">Apple event</glossary>.</p><p/><p>The <i>sender</i> <glossary tag="parameter">parameter</glossary> is the <property tag="address">address</property> of the <glossary tag="process">process</glossary> that sent the <glossary tag="Apple Event">Apple event</glossary>.</p><p/><p><b>Comments:</b></p><p>Use the <b>request appleEvent</b> <glossary tag="command">command</glossary> to obtain the data associated with an <glossary tag="Apple Event">Apple event</glossary>.</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/documentation/mac/IAC/IAC-2.html</u>&gt;.</p>
  </description>
</doc>