Saturday, April 14th, 2007


I was trying to do something earlier, where instead of creating a Command, I just used a macro that executed a command, but I wasn’t really able to.

Then, I happened to record a macro where, instead of having made the command earlier, I ran it while recording.  The following JavaScript is the macro:

// Macro recorded on Sat Apr 14 2007 00:30:57 GMT+0930 (CST)
komodo.assertMacroVersion(2);
if (komodo.view) { komodo.view.setFocus() };
komodo.doCommand('cmd_selectAll')
Run_RunEncodedCommand(window, 'python -u {\'operateOnSelection\': True}');

Now, I just need to see if I can use python macros to get the same effect.

Tonight May Have To Last Me All My LifeThe AvalanchesSince I Left You ★½

View Comments (0)   RSS Feed for Comments on this Post

I’ve been working on a few little macros for Komodo. I’m planning to build a more cohesive set as I use the editor more.
(more…)

View Comment (1)   RSS Feed for Comments on this Post