Margulies reveals she asked Wilson for help when she found herself struggling to remember dialogue for her hit drama The Good Wife - and the Sleepless in Seattle star suggested she try a new cellphone application, called Rehearsal 2.
The actress tells The Hollywood Reporter, "It's on the iPad. You highlight your lines with your fingers.
"I shoot 23 episodes a year, and it's all legal dialogue. It's so inhuman what they (writers) want you to do. Rita Wilson, who was a guest on our show, saw me... just sweating bullets all the time. She's like, 'Honey, Rehearsal 2'. And it's changed my life!"