Re: RagTime and AppleScript

Thomas Kaegi <[email protected]> Fri, 28 Mar 2014 19:21:01 +0100
Newsgroups gmane.os.apple.ragtime.german
Message-ID <[email protected]>
Hello Stephen

I hope I got your problem correctly. Here is my solution (I will send you the respective document by PM):

It is all done in a single document. I'm starting with Layout 1 which has 2 containers side by side, each with a vertical pipeline running over the pages. The pipeline in the containers on the left is the German text "Text D", the containers on the right contain "Text E". Important details:

1: The English text ends with a "new paragraph"

2: In the German text the "next container" format option is specified for the first paragraph

The document has a second layout with only one container on the page. It contains the text flow "Text C" which, at the outset, is empty. The following script will combine the two texts "Text E" and "Text D" in this order in "Text C". Because of the paragraph format option of the first paragraph of the German text, this part of the combined text will automatically begin on a new page.

Here is the script:

tell application "RagTime 6.5"

select text flow "Text E" of document 1

copy

select text flow "Text C" of document 1

paste

select text flow "Text D" of document 1

copy

select end of text flow "Text C" of document 1

paste

end tell

I hope this helps!

Regards, Tom

#############################################################

This message is sent to you because you are subscribed to

the mailing list <[email protected]>.

To unsubscribe, E-mail to: <[email protected]>

To switch to the DIGEST mode, E-mail to <[email protected]>

To switch to the INDEX mode, E-mail to <[email protected]>

Send administrative queries to <[email protected]>