Peggy (Margaret Mary) O’Shea, former head writer for daytime soaps “Capitol” and “One Life to Live” and for a time a writer on “Peyton Place,” died May 1 in Los Angeles of a stroke and its complications. She was 91.

O’Shea was head writer on ABC’s “One Life to Live” for much of the 1980s, sometimes in conjunction with Sam Hall. She was head writer on CBS’ “Capitol” during roughly the same period.

She worked on a range of other shows with her husband, TV writer Lou Shaw, penning episodes of “Dr. Kildare,” “Ben Casey” and “Have Gun Will Travel,” among others.

O’Shea is survived by Shaw, who created the show “Quincy, M.E.”