Re: Tell Blocks Considered Harmful (was Re: open for access)
Re: Tell Blocks Considered Harmful (was Re: open for access)
- Subject: Re: Tell Blocks Considered Harmful (was Re: open for access)
- From: Chris Page <email@hidden>
- Date: Sun, 14 Dec 2008 21:09:08 -0800
On Dec 14, 2008, at 9:15 AM, Philip Aker wrote:
On 2008-12-14, at 05:44:48, Chris Page wrote:
Do you have any radar numbers for those? Or a quick summary of the
problems?
It's exactly as above. I believe I only wrote to the "other" Chris
but there was no reply for that specific item.
If you haven't already, I encourage you to report bugs at <http://bugreporter.apple.com/
> with enough detail to help us reproduce the problem.
By “OSA components” do you mean scripting additions (OSAX) that
install event handlers in the Apple Event handler table, or do you
mean Component Manager scripting components, for which there is an
API for intercepting calls to other components?
OSAExecuteEvent() et. al. are in OSA.h
I'm sorry if I'm repeating myself, but what do you mean by
“component”? Are you aware of something called the Component Manager,
which is used to implement OSA and AppleScript? Are you referring to
those sorts of “components”? Are you referring to scripting additions
(OSAX)? Are you using the term to loosely refer to software you've
written that installs event handlers? Coercion handlers? I don't
understand what you're referring to with enough detail to answer your
question.
In any case, the issue is one of where we send scripting addition
command Apple Events. If a script has a scripting addition command
within an application tell block, that command goes to the target
application. What if we change it so that addition commands are
handled within the process running the script even when inside a
tell block? Does that affect your software?
Well, the way I understand it right now, I would actually need both
behaviors. For instance, if I implement a Mail rule, it's really
weird to call 'display dialog' (from the component in the rule
handler) because Mail is running its AppleEvents on a thread. But if
'display dialog' is in a droplet, then I can use my override or not
according to the situation.
“from the component in the rule handler”? I don't understand your use
of the word “component” in that context. Are you referring to the
script?
What is the nature of your “override”? How does it accomplish
“overriding”? What, exactly, does it override? What is it's
relationship to ‘display dialog’ and Mail rule scripts?
I'm sorry if I sound dense. I really don't understand what you're
trying to say.
--
Chris Page
The other, other AppleScript Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden