#5973

Yutaka Emura
Keymaster

deepbirch wrote:
Emeditor’s macro is very powerful!
Thanks in anyway.
I have one question.
I don’t know how to apply macro to all files within folder.
So I always have to do 70times for applying macro to files what I have to change.
I know the macro “Replace in files”. But some time this is not proper for my job.
Are there any way to Run Macro on all files within folder?

After you open all files within a folder with EmEditor, do something like this:


docs = new Enumerator( editor.Documents );
for( ; !docs.atEnd(); docs.moveNext() ){
doc = docs.item();
doc.Activate();

// do something with doc

}