Hooking into Scripteditor

Jeanne A. E. DeVoto jeanne at runrev.com
Mon May 13 01:12:08 EDT 2002

At 2:33 PM -0700 5/5/2002, Björnke von Gierke wrote:
>I was asking myself of how one could replace the scripteditor, and what
>messages one would have to send/recieve for it to function.

You'll want to check out the editScript message first of all. The approach
I would take is to create an object with a script like

on editScript
  put the script of the target into field "Editor"
  -- or whatever you want to do
end editScript

and then use the insert command to insert that object into the front. In
this way, it will catch all attempts to edit the script, and do whatever's
in the handler. You will need to take care of setting the script yourself,
using the set command - you'll probably want to store the object's long ID
(which gets passed as a parameter to editScript) in a global, field, or
custom property.

(Please note that of course although you can change the development
environment, we do not offer support if you somehow manage to mess it up
fatally. ;-)

Jeanne A. E. DeVoto ~ jeanne at runrev.com
Runtime Revolution Limited - The Solution for Software Development

More information about the use-livecode mailing list