in reply to Re^3: Check for a new line
in thread Check for a new line

Thanks that did the trick, I have the script working as expected now