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 05:44:48 -0800
On Dec 14, 2008, at 5:06 AM, Philip Aker wrote:
On 2008-12-14, at 03:09:16, Chris Page wrote:
Does your OSAX contain event handlers?
Don't quite understand. It's all event handlers -- I did any
necessary coercions directly in code rather than installing handlers
for them.
It's possible to create scripting additions that contain terminology
for events that are handled by other software. For example, Standard
Additions defines terminology for the Folder Actions events, but it
doesn't provide handlers for them.
In addition, they can provide coercion handlers, which are separate
from event handlers. Scripting additions don't have to provide event
handlers.
A few other osax developers you may wish to forward your question to
are Mark Alldrit, the Smile developers, some Japanese guys (Tanaka
e.g.), and whoever makes the 24U Appearance OSAX.
Thanks.
What are implications for OSA components?
Sorry, the implications of what?
OSAExecuteEvent() and it's immediate companions to be specific.
Leopard messed up the cursor handling for my OSA components which
give applets and droplets additional UI capabilities.
What do you mean by “cursor handling”?
I haven't been able to find a shred of documentation about changes
in applets at this level. In fact, every OS since 10.2 has involved
convoluted workarounds or loss of abilities for OSA components due
to changes.
Do you have any radar numbers for those? Or a quick summary of the
problems?
So I'm concerned about the implications of the sender vs target
topic you've brought up because components can delegate events to
the AppleScript component (or override them).
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?
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?
--
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