Intercepting 'set the script..." in the IDE editor
Dar Scott
dsc at swcp.com
Fri May 4 18:03:39 EDT 2012
Thanks! Are there object and script parameters or will I have to get those another way?
Dar
On May 4, 2012, at 2:27 PM, Bill Vlahos wrote:
> 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
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list