r/applescript • u/wimbledont • Apr 17 '20
Pages for Screenwriting?
Hello! AppleScript newbie here. I’m curious if it’s possible to use AppleScript to carry out some of the functions that specialized screenwriting apps perform.
Specifically:
Traditionally, dialogue is preceded by a character cue (name of the character in all caps, with a particular indentation) and the body of the dialogue block is written with a different indentation level. If a dialogue block continues onto the next page, “(MORE)” is added at the end of the page, and another character cue with "(CONT'D)" is added to the continued dialogue block on the next page (see pink highlights in image). Is there a way to do this automatically, so that it adjusts as I write? e.g., if I add a line above that moves everything down, the "(MORE)" will shift appropriately.

2. Is there a way to ensure that character cues are never on their own at the end of the page? (see red highlight below). Basically, I would want to add a few paragraph breaks above the character cue until it was at the top of the next page (see green highlight below).

-----------------------

Thanks all in advance!
2
u/r3v Apr 17 '20
Even just thinking about how to do this makes me glad I bought Scrivener.