After spending many hours pulling my hair out wondering why none of the commands for reading the journal worked for me, I finally realized that in Settings > Common ...
you have to click "Show Cliloc text in journal" ...
It's the only way Stealth will be able to read your journal or be able to use the commands:
InJournalBetweenTimes
LastJournalMessage
etc.
Once I clicked that little box, my routine started working without a problem ...
while(injournalbetweentimes('no metal',TimeParser,Now) = -1) do
begin
UseObject(FindType(Shovels,Backpack));
shovelwait;
TargetToXYZ(tX,tY,GetSurfaceZ(tX, tY, WorldNum));
Wait(1000);
end;