[ANN] MLXEditor - runrev plugin for script editing with ANY external editor app

Trevor DeVore lists at mangomultimedia.com
Fri Sep 12 09:11:01 EDT 2003


On Friday, September 12, 2003, at 12:07  AM, Alex Rice wrote:
> Actually it's not that bad. But this is kind of a tricky plugin.
>
> Does anyone want to look at what I've written so far?
>
> I could use someone knowledgeable of the IDE rev* internal scripts who 
> help me improve error handling and debugger interaction. The idea with 
> the debugger is that: external editors can't act as a debugger, that 
> when the user wants to debug, the built-in script editor would be 
> allowed to startup.
>
> Currently I'm doing this by making the user hold down the SHIFT key- 
> but there has got to be a better way.
>
> Also I would like to pass exceptions and script compilation errors 
> through to the IDE's own error dialogs, but couldn't figure out how so 
> just wrote my own error handlers using the answer dialog.
>
> * The Help card of the mainstack has a bit of documentation.
> * scripts are unlocked- please suggest improvements or bug fixes
> * tested on Rev 2.1, Mac OS X.
> * Is 100% transcript so should work with other OS

Alex,

This is very cool.  I use BBEdit for all of my other editing (PHP, 
QScript, ActionScript, etc.) and now I can use it for transcript too.  
I just modified your textedit example to launch BBEdit:

put "%s" into tTmpFile
put "open -a " & quote & "/Applications/Document Editors/BBEdit 
7.0/BBEdit.app" & quote && quote & tTmpFile & quote into tCmd
get shell(tCmd)

I have been wanting something like this for Rev for quite some time.  
You get used to how your favorite editor works and it can be painful 
when you have to use others.  Now to figure out color coding for 
BBEdit...

-- 
Trevor DeVore
Blue Mango Multimedia
trevor at mangomultimedia.com




More information about the use-livecode mailing list