EmEditor (text editor) Forum Index
   Questions and Answers about Macros
     Opening large file with executing macro from command line
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
LuK
Posted on: 10/23/2008 12:06 am
Just popping in
Joined: 9/24/2008
From:
Posts: 5
Opening large file with executing macro from command line
Hello,

I would like to know if and how itīs possible to wait for completion of the opening process of a file before the macro will start running.

At the moment, I have three files with the following config:
1. File -> ~ 5000 lines
2. File -> ~ 4000 lines
3. File -> ~ 50000 lines

The first two files are loaded quickly, and the macro runs successful, but if EmEditor opens the third file, the macro will run if EmEditor was started. But at this time, the file isīnt fully loaded and the macro does not run correctly. If I delete a part of the file, so that EmEditor can open the file correctly, also the macro will run successful.

Do you have any idea to solve this, i.e. "wait until file is loaded".

Thx and best regards
Thorsten
Yutaka
Posted on: 10/23/2008 1:21 pm
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2398
Re: Opening large file with executing macro from command line
Quote:

LuK wrote:
Hello,

I would like to know if and how itīs possible to wait for completion of the opening process of a file before the macro will start running.

At the moment, I have three files with the following config:
1. File -> ~ 5000 lines
2. File -> ~ 4000 lines
3. File -> ~ 50000 lines

The first two files are loaded quickly, and the macro runs successful, but if EmEditor opens the third file, the macro will run if EmEditor was started. But at this time, the file isīnt fully loaded and the macro does not run correctly. If I delete a part of the file, so that EmEditor can open the file correctly, also the macro will run successful.

Do you have any idea to solve this, i.e. "wait until file is loaded".

Thx and best regards
Thorsten


I will check later when I have a time. For now, you can increase the size specified in the "Minimum File Size to Open Asynchronously" text box in the advanced tab of the Customize dialog box.


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

Threaded | Newest First Previous Topic | Next Topic | Top


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