Hello and thanks for trusting me to help you today. I am a licensed diagnostic and repair technician, I look forward to working with you.
Just to confirm, is this happening as a direct result of the battery being changed?
Yes the car was running fine beforehand. The last time I changed the battery the same thing happened. The AA man took out the air filter and shook it and sprayed something into the outlet and it worked fine. I have tried shaking out the air filter but it hasn't helped this time. The engine only cuts out when its warm not just after starting up.
I will try this tomorrow or Thursday and let you know how I get on.