jEdit Community - Resources for users of the jEdit Text Editor
Combining/sequencing macros
Submitted by highab on Thursday, 3 February, 2011 - 10:49
I have three macros to run one after the other (or combine into one if I can)....

macro 1: populate hypersearch window with results of search for text between specific tags (and the tags)
macro 2: copy the text from the hypersearch window to a new buffer
macro 3: delete the tags and the superfluous bits

if I run them manually they do what I want. If I try to combine them or call them from a fourth macro that just calls them, they don't work right... I think they try to run at the same time rather than waiting for the previous one to finish ("node has no children". How do I get around this please?
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
Have you tried adding: VFS
by tvojeho on Tue, 01/03/2011 - 17:26
Have you tried adding:

VFSManager.waitForRequests();

between the calls for the macros?

Cheers, tvojeho
 
just did
by highab on Fri, 04/03/2011 - 19:36
Thanks for the hint... it still said the hypersearch had no child nodes, so it didn't wait long enough even if it did wait.
 
Then maybe the waitForRequest
by tvojeho on Sat, 05/03/2011 - 15:59
Then maybe the waitForRequests line could be put immediatly after the search command in the first macro to wait for it to finish? Otherwise you'll just have to hope for some beanshell expert to help you, not an amateur like me Smiling.

tvojeho
Mailing List
by Robert Schwenn on Thu, 03/02/2011 - 17:47
You should ask at the jEdit Users Mailing List ( https://lists.sourceforge.net/lists/listinfo/jedit-users ). There are more people than here.
User login
Browse archives
« November 2024  
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   101634
Context Free Art (*.cfdg)   0.31   46062
BBEdit scheme   1.0   18601
JBuilder scheme   .001   18502
ColdFusion scheme   1.0   18031
R Edit Mode - extensive version   0.1   17481
Advanced HTML edit mode   1.0   16213
Matlab Edit Mode   1.0   16075
jEdit XP icons   1.0   15236
XP icons for jEdit   1.1   14300