hey man - remove the throttle body from the engine and give it a good clean with throttle body cleaner and a toothbrush. check out this link.
since you already did replace the Throttle Position Sensor (TPS) cleaning the thorttle body and Idle Air Control valve (IAC) is more than likely your solution.
my 00 4.7 was having idle problems (among other things). i did a complete throttle body cleaning along with cleaning up the IAC, and it solved all my issues (see my other posts).
i also have a 02 HO that is a company jeep - we had it in to the dealership a few months back because it wouldn't idle at all, they replaced the IAC and TPS, and cleaned the TB and problems solved.