AppleScript terminology: Ways to target a specific object
<p>I am trying to make this AppleScript work with my scriptable app:</p>

<pre><code>tell application "My App"
    tell thing 1    -- my custom class
        dosomething -- my custom command
    end tell
end tell
</code></pre>

<p>I like the command to affect "thing 1". Is that even possible?</p>

<p>Or am I required to add a parameter to the command like this:</p>

<pre><code>tell application "My App"
    dosomething with thing 1
end tell
</code></pre>

<p>I'd rather use the first option, though.</p>

<p>BTW, in case others are struggling with Object-first commands: It's important to leave the command's "class" field empty and only set the method name in the <code>&lt;responds-to&gt;</code> element.</p>