Man guilty of burglary in Dunst handbag heist

? It was a real-life remake, with a different ending.

A mechanic was convicted Friday of burglary in the theft of Kirsten Dunst’s $2,000 designer purse and actor Simon Pegg’s cell phone and other items from a chic hotel, a 2007 heist that forced the co-stars to twice play the part of witnesses.

James Jimenez, who said he just tagged along on what he thought was a co-defendant’s legitimate errand, was convicted of trespassing after a trial last fall. But that jury deadlocked on the more serious burglary charge, spurring a retrial that brought the actors back to the witness stand this week.

Their roles were simple: They explained that their possessions disappeared from a SoHo Grand Hotel penthouse suite they were using as a lounge during filming for “How to Lose Friends & Alienate People,” and that they didn’t know the men they later saw ambling around the penthouse floor on surveillance video.

Jimenez, 36, faces up to 15 years in prison at his sentencing, set for June 23. He still maintains his innocence and plans to appeal, said his lawyer, Robert Parker.