문제

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