Intercepting 'set the script..." in the IDE editor

Bill Vlahos bvlahos at mac.com
Fri May 4 15:27:35 CDT 2012


Dar,

ActionCompile is called when you click the Apply (compile) button in the IDE. I believe it is called before the actual compile. If you don't have the "pass actionCompile" statement it doesn't compile.

on actionCompile
   --your code here
   pass actionCompile
end actionCompile

Bill Vlahos
_________________
InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure.

On May 2, 2012, at 10:51 AM, Dar Scott wrote:

> I like the idea of a plugin setting up a front script.  However, don't I need to catch the click on the apply button rather than closefield?  
> 
> 
> Maybe, I'm trying to do the wrong thing.  Maybe I just need a plugin button to make the transformation on the edit field itself, perhaps with comments showing the change.  This should be set up to be undoable.
> 
> That might look OK for, say, constant folding, but would look scary for translating some domain language into 'talk.  Even with a comment showing the original line, suddenly getting lines 300 characters long that look like nonsense can be confusing.  
> 
> It does put the LiveCode programmer in charge.
> 
> 
> Dar




More information about the use-livecode mailing list