An ABC Family television pilot will shoot in Massachusetts next month. The Mass. Film Office confirmed Wednesday that the drama — which is an adaptation of the Mexican show “Terminales” — will be Boston-based and filmed around town. The show, produced by Lionsgate and Televisa for ABC Family, is about a young professional named April who finds out she has a terminal illness. (Think “Sex and the City” meets “The Big C.”) She’ll be played by Italia Ricci, who’s had bit parts on “How I Met Your Mother” and “House.” Mary Page Keller of “Ryan’s Hope” and “Another World,” has been cast as April’s mom. Susanna Fogel and Joni Lefkowitz are the writing team on the project. Aaron Kaplan, of “Terra Nova,” is producing. If “Terminales” is picked up as a series, state film commissioner Lisa Strout will have achieved one of her goals — to get a television show back in Boston. Strout worked on “Spenser: For Hire” back in the day, and told us after she took the job last year that a local television show would be a consistent source of jobs and revenue for the state. In 2010, a pilot for a cop show called “Boston’s Finest” shot around the city but was not picked up by ABC. Before that, Donnie Wahlberg and Bridget Moynahan filmed a pilot for TNT called “Bunker Hill,” but it didn’t get picked up. And then there was “War of ’04,” the Spike TV pilot about a Whitey Bulger-esque mob boss and the explosive battle that erupts when he abruptly disappears. (The show, starring Kevin Chapman, Matthew Marsden, and David Patrick Kelly, wasn’t picked up.) Earlier this year, Boston was used for the Shonda Rhimes pilot “Gilded Lilys,” a period drama starring Blythe Danner. (ABC passed on that pilot, too.) We haven’t been told much about specific shooting locations for “Terminales,” but we’ve heard that location scouts have checked out some private homes around Boston.