in reply to Bring two scripts together?

take your second script & put it before the exit in the first script then you'll get both scripts in one

of course you'll need to change the $IN & $OUT in the second script to match what already used in the first one

HTH