Random thought while working in a pharmacy:
“Script” is often used as short for “prescription”
“Script” is also used to mean software
So
Programmers and doctors could both be called “scriptwriters”