SHORT VERSION: Is there any way in Pages 2.0 for an Applescript to
identify whether a paragraph breaks across two pages?
LONG VERSION: I'd like to create a script for Pages 2.0 that will
help write screenplays in Hollywood industry-standard format.
Everything is done except one thing:
When a block of dialogue (a paragraph of the style called "Dialogue")
breaks across a page, I need to have the word (MORE) inserted at the
bottom of the first page, and have the character's name and the word
(CON'T) inserted at the top of the second page. So, I need to find
paragraphs that look like this:
1. Identify paragraphs which have the paragraph style "Dialogue" and
which break across pages, or which are both the last paragraph on one
page and the first paragraph on a subsequent page. (Is this possible?)
2. Insert two new paragraphs: the first at the bottom of the first
page, which would insert the word "(MORE)", and the second, which would:
a. Copy the text of the relevant paragraph from the first page,
and paste that text in the new paragraph, and then
b. Insert the word (CONT'D).
I think I can handle the second thing (maybe) if someone could help
me figure out the first thing.
Also, I'd need a script to delete all the previously-existing (MORE)
and (CONT'D) paragraphs, but that would be simple.