<doc>
  <legacy_id>1052</legacy_id>
  <name>me</name>
  <type>keyword</type>
  <syntax>
    <example>me</example>
  </syntax>
  <library></library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Objects &amp; Messages</category>
  </classification>
  <references>
    <command tag="dispatch">dispatch Command</command>
    <function tag="target">target Function</function>
    <function tag="menuButton">menuButton Function</function>
  </references>
  <history>
    <introduced version="1.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
    <ios/>
    <android/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
    <mobile/>
  </classes>
  <security>
  </security>
  <summary>Equivalent to the <glossary tag="object">object</glossary> that contains the currently running <glossary tag="handler">handler</glossary>.</summary>
  <examples>
    <example>set the borderWidth of me to it</example>
    <example>put the short ID of me into savedID</example>
    <example>put me into myVariable <code><i>-- puts contents, if me is a container</i></code></example>
    <example>put me into myVariable <code><i>-- puts name, if me is not a container</i></code></example>
  </examples>
  <description>
    <p>Use the <b>me</b> <glossary tag="keyword">keyword</glossary> within a <glossary tag="handler">handler</glossary> to determine which <glossary tag="object">object's</glossary> <property tag="script">script</property> is <glossary tag="execute">executing</glossary>.</p><p/><p><b>Comments:</b></p><p>The <b>me</b> <glossary tag="keyword">keyword</glossary> is a reference to the <glossary tag="object">object</glossary> whose <property tag="script">script</property> contains the current <glossary tag="handler">handler</glossary>. If <b>me</b> is executed in a <property tag="behavior">behavior</property> <property tag="script">script</property>, then <b>me</b> refers to the object that is executing the <property tag="behavior">behavior</property> <property tag="script">script</property>.</p><p/><p>If the currently executing handler is in the script of the object that received the original message, then <b>me</b> is the same as the <glossary tag="object">object</glossary> whose <property tag="name">name</property> is <glossary tag="return">returned</glossary> by the <function tag="target">target</function> <control_st tag="function">function</control_st>. For example, suppose a <keyword tag="button">button</keyword> <property tag="script">script</property> contains a <message tag="mouseDown">mouseDown</message> handler. The value of the <function tag="target">target</function> <control_st tag="function">function</control_st> within that <message tag="mouseDown">mouseDown</message> <glossary tag="handler">handler</glossary> is the same as<code> the name of me</code>: the name of the button.</p><p/><p>However, if the <b>mouseDown</b> <glossary tag="handler">handler</glossary> is in the <glossary tag="card">card's</glossary> <property tag="script">script</property> instead of the <glossary tag="button">button's</glossary>, <b>me</b> is not the same as the <glossary tag="object">object</glossary> specified by the <function tag="target">target</function>. In this case, <b>me</b> is the <keyword tag="card">card</keyword>, but the <function tag="target">target</function> <control_st tag="function">function</control_st> <glossary tag="return">returns</glossary> the <glossary tag="button">button's</glossary> name, because the <keyword tag="button">button</keyword> is the <glossary tag="object">object</glossary> that first received the <message tag="mouseDown">mouseDown</message> <keyword tag="message box">message</keyword>.</p><p/><p>The <b>me</b> <glossary tag="keyword">keyword</glossary> can be used anywhere an <href tag="reference/object_reference.rev">object reference</href> is used.</p>
  </description>
</doc>