Re: Attachability
Re: Attachability
- Subject: Re: Attachability
- From: Mark Alldritt <email@hidden>
- Date: Tue, 06 Feb 2001 00:28:24 -0800
>
Those who know (e.g., Mark Alldritt, Emmanuel Levy, Jon Pugh, Cal Simone,
>
Richard23) either can't or won't discuss this stuff in language a mere
>
scripter could understand.
Since my name came up, I'll try and give some pointers for understanding the
complexity I've been responsible for creating. :)
The problem with attachability is that is actually a very broad area, and
means different things depending on the application involved.
In the case of Script Debugger, attachability refers to the ability to
replace or extend Script Debugger's response to its various menu commands.
For instance, if you want to modify the meaning of compiling a script in
Script Debugger, you can define a handler for the Compile AppleEvent in the
Attachments script (located in the Script Debugger folder). Once you do
this, Script Debugger hands responsibility for compiling the script to you
to do with as you wish. The same can be done for Close, Save, Quit and a
host of other program functions.
In addition, the Paste buttons in the various SD palette windows are
implemented using handlers in the Attachments script. So, for instance, if
you don't like the way SD creates tell blocks for you you can edit the
AppleScript code to make it do exactly what you want.
I recommend looking at the contents of the Attachment script file in the
Script Debugger folder. It contains examples of many attachment handlers
that you can experiment with. Don't worry if you mess it up. All you have
to do is drag the Attachments script out of the SD folder to make SD revert
to its standard behavior.
If you have specific questions about what can be done, or how to accomplish
something in SD, please contact me and I'll help in any way I can.
Cheers
-Mark
---------------------------------------------------------------------
Mark Alldritt Late Night Software Ltd.
Phone: 250-380-1725 333 Moss Street
FAX: 250-383-3204 Victoria, B.C.
WEB:
http://www.latenightsw.com/ CANADA V8V-4M9