3

I'm using Komodo IDE, version 6.1.1, build 61234, platform macosx-x86. I'm also using Python 3.2 and Python 2.7. I've just moved to using (my first) Mac. OS version 10.6.?

On my Windows machines I had a couple of macros set up that I would like to continue to use:

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

Any idea how to do this? I'm very new to using a Mac so I don't know where to start.

debragail
  • 149
  • 3
  • 8

2 Answers2

2

I ended up writing my own macros - see below...

// 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\'}');

and...

// 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\'}');
debragail
  • 149
  • 3
  • 8
0

Go to your 'Toolbox', right click the macro you want to save and then click 'Save as'. Copy the saved macros to your Mac. And then click the wrench icon and click 'Import files from file system'

enter image description here

If you have Komodo 7, then you can use the Synchronization feature to sync your macros to multiple computers without much effort.

Sridhar Ratnakumar
  • 81,433
  • 63
  • 146
  • 187