EmEditor (text editor) Forum Index
   Questions and Answers about Macros
     Run Macro on all files within folder
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
deepbirch
Posted on: 7/5/2008 8:17 am
Just popping in
Joined: 6/28/2008
From:
Posts: 7
Run Macro on all files within folder
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?
Yutaka
Posted on: 7/5/2008 11:20 am
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2401
Re: Run Macro on all files within folder
Quote:

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

}



----------------
Yutaka Emura
Developer of EmEditor
http://www.emeditor.com/

deepbirch
Posted on: 7/11/2008 4:41 pm
Just popping in
Joined: 6/28/2008
From:
Posts: 7
Re: Run Macro on all files within folder
Thank you for your pormpt response.
I always get great help from emeditor!
Threaded | Newest First Previous Topic | Next Topic | Top


Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文