Re: Scripting re: page breaks in Pages 2.0
Re: Scripting re: page breaks in Pages 2.0
- Subject: Re: Scripting re: page breaks in Pages 2.0
- From: Wes Brown <email@hidden>
- Date: Tue, 13 Jun 2006 15:16:10 -0700
One more note: Any page that begins with a "Dialogue"-style
paragraph would signal a need for (MORE) and (CONT'D) to be added; is
there any way to look for that property?
On Jun 13, 2006, at 2:35 PM, Wes Brown wrote:
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 (Applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.com
This email sent to email@hidden
_______________________________________________
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