Scripting re: page breaks in Pages 2.0
Scripting re: page breaks in Pages 2.0
- Subject: Scripting re: page breaks in Pages 2.0
- From: Wes Brown <email@hidden>
- Date: Tue, 13 Jun 2006 14:35:50 -0700
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:
JOE
Blah blah blah blah blah
blah blah blah blah blah
[PAGE BREAK]
blah blah blah blah blah
blah blah.
And change them to:
JOE
Blah blah blah blah blah
blah blah blah blah blah
(MORE)
[PAGE BREAK]
JOE (CONT'D)
blah blah blah blah blah
blah blah.
So the script needs to:
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.
Thanks for any help you can give.
Wes Brown
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden