Вопрос

I need to have a macro run when I save a file. I have the code for the file save, i just don't know the code to wrap round it for triggering it when saving.

I think komodo edit is written in Python, so assuming if anyone knows the code for the following in Python it would work:

onFileSave{

//do stuff

}
Это было полезно?

Решение

You can check out the ActiveState macro pages or macro api pages.

Macros can be done in python or javascript. Recording a macro creates a javascript macro. You can also create the macro by right clicking on the toolbox (right) panel.

Once a macro is created, visit the "Triggers" tab from the "Properties" menu item (right clicking on the macro).

SO makes nice one stop shopping but I've found the ActiveState developers to be very responsive and helpful on the ActiveState support forums.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top