On Nov 6, 2007, at 12:43 PM, Christiaan Hofman wrote:
It's very simple: the direct parameter of the command receives the
command. In the first case, this is a medium. As it implements it's
own specialized handler, that handler is called. In the second case,
it is an array. The array does not implement a specialized handler,
so the generic handler is called (performDefaultImplementation). The
tell block here is not relevant (apart from giving a context for the
medium and the shelf) because you have supplied an explicit direct
parameter (otherwise the subject of the tell block would be
implicitly substituted).
I advice you to carefully read the documentation about script
command handlers.
You're right, of course, on all counts. This is what I discovered upon
experimentation and not a little poring over the documentation. Even
so, I would think the object being sent a tell would be extractable
from the command somehow.
Unfortunately, my problem (which seems to be one shared by many
application developers) is not ignoring the documentation, but the
impenetrable nature of the documentation itself. I definitely a think
a rewrite is in order, or maybe there's a book in there for someone.
That said, I thank all of you for your help and your tolerance. This
mailing list has proven to be an invaluable resource.
Mike Lee, Major-domo
Delicious Monster Software, LLC