The Dukes County Deputy Sheriff’s all-star team had the lead for a short time, in the annual celebrity softball classic on Saturday afternoon in Veteran’s Memorial Park. But it was fleeting, and in the end they lost 20 to 23 before a scattering of fans.

Bob Ogden pitched for the sheriff’s team.

The event was hosted and run by the All Pro Productions Inc., a Marlborough organization that puts celebrity sports figures on fields around the region to compete against local fire and police departments to raise money for charity. They came to the Vineyard on Saturday to help the sheriff’s association reach its fund-raising goals.

The event raised $30,000, as it did the year before.

Boston professionals who played included Jim Corsi and Bill Lee from the Red Sox; Ed Ellis, Steve DeOssi, Matt Chatham and Joe Andruzzi from the Celtics; and John Songin and Ken Linseman from the Bruins.

Mr. DeOssi is also a sports radio host on WEEI in Boston. He said he came to the Vineyard last weekend not only to play a couple of innings but to ride his motorcycle around and visit Island friends, one of them Mr. Ogden.

The afternoon was hot and sunny and the dust was high at third and at home plate, where there was a good deal of sliding. John McCarron, a deputy sheriff, was one who slid into third. Mr. McCarron said he has played just about every game with the professionals in his 22 years with the county. “It is all fun,” he said.

— Mark Alan Lovewell