Python Macros on Mac Using Komodo

I am using Komodo IDE, version 6.1.1, build 61234, macosx-x86 platform. I also use Python 3.2 and Python 2.7. I just switched to using (my first) Mac. OS Version 10.6.?

On my Windows machines, I had several macros configured that I would like to continue using:

F2: save the file and then run using Python 2.x, get the tab, start in the current directory
F3: save the file and then run using Python 3.x, get the tab, start in the current directory

Any ideas how to do this? I am very new to using a Mac, so I don’t know where to start.

+3
source share
2 answers

- . ...

// Macro recorded on: Thu Jun 10 2010 08:50:50 GMT+1000 (AUS Eastern Standard Time)
komodo.assertMacroVersion(3);
if (komodo.view && komodo.view.scintilla) { komodo.view.scintilla.focus(); }
komodo.doCommand('cmd_save')
ko.run.runEncodedCommand(window, '/usr/local/bin/pythonw \"%F\" {\'cwd\': u\'%D\'}');

...

// Macro recorded on: Thu Jun 10 2010 08:50:50 GMT+1000 (AUS Eastern Standard Time)
komodo.assertMacroVersion(3);
if (komodo.view && komodo.view.scintilla) { komodo.view.scintilla.focus(); }
komodo.doCommand('cmd_save')
ko.run.runEncodedCommand(window, '/usr/local/bin/pythonw3 \"%F\" {\'cwd\': u\'%D\'}');
+2

" ", , , " ". Mac. " "

enter image description here

Komodo 7, .

0

All Articles