EmEditor (text editor) Forum Index
   Questions and Answers about EmEditor Core
     Problem with macros in the portable version
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
Klortho
Posted on: 12/11/2009 9:45 am
Not too shy to talk
Joined: 2/24/2009
From:
Posts: 28
Problem with macros in the portable version
Hi, I just installed the portable version, and I'm trying to put all my macros in a "macros" subdirectory of the installation directory. That way, I can have everything in one place.
The problem is illustrated by this sequence of steps:
1. I copied my macro "XMLEscape.jsee", into the "macros" subdirectory of the EmEditor directory where I have the portable version
2. I selected the menu option "Macros" - "Select", and navigated to the file and clicked "Open",
3. In the "Macros" menu, I now see my macro listed as item # 2.
4. If I try to click on it, though, I get a box saying "The system cannot find the file specified. \macros\XMLEscape.jsee"

I checked in the eeCommon.ini file, and found that the setting is
MacroFile=\macros\XMLEscape.jsee
which is clearly wrong, the path shouldn't start with "\" -- it should be relative.

If I change that to remove the leading "\", and then restart EmEditor, then I can access the macro.

The same problem occurs when you try to customize the macro menu through "Macros" - "Customize...". If I click "New" and add macros using that box, then they appear in the menu, but clicking on them has the same problem. I found that to make the change permanent, so that these macros are always available from the "Macros" menu, I had to change the pathnames under the [Macros] section of the same .ini file.
Yutaka
Posted on: 12/11/2009 10:51 am
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2398
Re: Problem with macros in the portable version
Quote:

Klortho wrote:
Hi, I just installed the portable version, and I'm trying to put all my macros in a "macros" subdirectory of the installation directory. That way, I can have everything in one place.
The problem is illustrated by this sequence of steps:
1. I copied my macro "XMLEscape.jsee", into the "macros" subdirectory of the EmEditor directory where I have the portable version
2. I selected the menu option "Macros" - "Select", and navigated to the file and clicked "Open",
3. In the "Macros" menu, I now see my macro listed as item # 2.
4. If I try to click on it, though, I get a box saying "The system cannot find the file specified. \macros\XMLEscape.jsee"

I checked in the eeCommon.ini file, and found that the setting is
MacroFile=\macros\XMLEscape.jsee
which is clearly wrong, the path shouldn't start with "\" -- it should be relative.

If I change that to remove the leading "\", and then restart EmEditor, then I can access the macro.

The same problem occurs when you try to customize the macro menu through "Macros" - "Customize...". If I click "New" and add macros using that box, then they appear in the menu, but clicking on them has the same problem. I found that to make the change permanent, so that these macros are always available from the "Macros" menu, I had to change the pathnames under the [Macros] section of the same .ini file.


I cannot reproduce your issue, so it might depend on OS version. Which OS do you use? Windows XP or Vista? Do you use the latest version of EmEditor -- 9.06?


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

Klortho
Posted on: 12/11/2009 2:39 pm
Not too shy to talk
Joined: 2/24/2009
From:
Posts: 28
Re: Problem with macros in the portable version
Windows XP, and yes, the latest version. Note that I'm using the portable version.
Yutaka
Posted on: 12/12/2009 1:12 pm
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2398
Re: Problem with macros in the portable version
Quote:

Klortho wrote:
Windows XP, and yes, the latest version. Note that I'm using the portable version.


I reproduced this issue in Windows XP. I am fixing this in the next version. Thanks!


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

ToadLoadin
Posted on: 12/12/2009 9:11 pm
Just can't stay away
Joined: 7/4/2008
From: China
Posts: 119
Re: Problem with macros in the portable version
I think setting a enviroment variable such as $EmEditorPath$ in future version could help.
Klortho
Posted on: 5/31/2010 7:03 pm
Not too shy to talk
Joined: 2/24/2009
From:
Posts: 28
Re: Problem with macros in the portable version
I see that it is fixed. Thanks!
Threaded | Newest First Previous Topic | Next Topic | Top


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