BOSTON — Pinch-runner Darnell McDonald scampered home when Marco Scutaro’s bunt was thrown away by pitcher Robbie Weinhardt, and the Boston Red Sox won in their last at-bat for the second straight game, beating the Detroit Tigers 4-3 today.

Jonathan Papelbon (4-4) earned the victory despite giving up Miguel Cabrera’s two-run double and a tying single by Jhonny Peralta in the ninth.

Brad Thomas (4-1) took the loss, allowing an unearned run on two hits and a walk in one inning plus two batters.

Clay Buchholz carried a two-hit shutout into the ninth before the Tigers tied it. Jed Lowrie singled to lead off the bottom half and Eric Patterson walked before Scutaro laid down a bunt.

Weinhardt fielded it but threw to the infield side of first base and Cabrera couldn’t get to it.