I don't see the example.
Here is the example taken from the Scripting Index
Help==>Scripting Index
Names Default To Here( 1 );
//This message applies to all display box objects
New Window( "Example",
ob = Outline Box( "Outline Box",
V List Box(
ob2 = Outline Box( "Outline Box 2",
H List Box(
Text Edit Box( "Top Left" ),
Text Edit Box( "Top Right" )
)
),
ob3 = Outline Box( "Outline Box",
H List Box(
Text Edit Box( "Bottom Left" ),
Text Edit Box( "Bottom Right" )
)
)
)
)
);
ob3 << Page Break;
How can I undo the page break in journal?
I don't see any clear way to do this. Hopefully some other Community Member may have a solution.
If we are talking about PageBreakBoxes then...use XPath to get references to all of them and then send << Delete box() message to those references
Names Default To Here(1);
//This message applies to all display box objects
nw = New Window("Example",
ob = Outline Box("Outline Box",
V List Box(
ob2 = Outline Box("Outline Box 2",
H List Box(Text Edit Box("Top Left"), Text Edit Box("Top Right"))
),
ob3 = Outline Box("Outline Box",
H List Box(Text Edit Box("Bottom Left"), Text Edit Box("Bottom Right"))
)
)
)
);
ob3 << Page Break;
nw << Journal;
(Current Journal() << XPath("//PageBreakBox")) << Delete Box;
It also might be enough to just send << Visibility("Collapse") instead of deleting them
Nice solution!