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 01:30:17 -0800
On Dec 13, 2008, at 5:44 PM, Shane Stanley wrote:
On 13/12/08 3:17 PM, "Chris Page" <email@hidden> wrote:
Do you have any scripts or applications that intentionally send
scripting addition commands to other processes? If so, why?
I'd imagine the big ones among users are display dialog and the
other UI commands (display alert, choose from list, choose file,
choose folder, choose file name), for obvious reasons.
For the user-interaction commands, exactly which of the following
aspects is significant to the correct operation of your scripts?
1. The dialog is displayed in front.
2. The dialog is modal and prevents the user from interacting with the
target application.
3. The contents of the file-related commands depend upon the
permissions of the target application.
For example, would it be a problem if we changed all the additions
that display dialogs to display them in front of the target
application, but without being modal to the target application? i.e.,
the dialog would initially be displayed in front, but users and other
scripts would still be able to interact with the target application
and the user could even bring the target application windows in front
of the dialog. What if the dialogs were initially displayed in front,
but were modal to the process that sent the command?
And the clipboard's dictionary says in part: " Use in a ‘tell’
block..."
I wonder if that documentation is out of date. Notice that it doesn't
say the same thing for ‘clipboard info’. Has anyone seen the results
differ depending on the application handling the clipboard commands?
There have also been a couple of apps that have implemented part of
their scripting through scripting additions -- QuarkXPress and
Photoshop come to mind. In both cases I *think* it related to
implementing coercions.
I thought that was only so that a script could perform coercions
without sending an event to XPress?
Is anyone aware of applications that actually use an addition loaded
into their process to handle scripting commands from other processes,
instead of just installing event handlers with their application code?
--
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