InDesign TOC and overflowing text questions
InDesign TOC and overflowing text questions
- Subject: InDesign TOC and overflowing text questions
- From: EBI Aktivitet <email@hidden>
- Date: Mon, 11 Oct 2004 22:41:50 +0200
Two problems...
1. Table Of Contents suddenly not working, and it used to be working fine.
InDesign will quit when I run this code, and I can't make out what's wrong.
In the document there is a TOC already, I just want to update it. I've tried
rebuilding the TOC style, and also the entire document template, just to
avoid getting stuck in a corrupt doc, but no success.
tell application "InDesign CS"
set myDocument to active document
tell myDocument
try
set theTOCcreated to create TOC using TOC style
"Skolkatalog_TOC" with replacing
end try
save to (theSavePath as string) --theSavePath string works, I
checked that.
end tell
end tell
2. I want to place text in a text frame, but the text might be longer than
what the text frame visibly can contain. Each line is added as a separate
paragraph, but when the lines hit the last visible boundary of the text
frame, and starts adding outside the visible bounds, the text goes crazy. It
seems that insertion point -1 is not the right way to do this, when the text
overflows. It seems that insertion point -1 is referenced from the visible
insertion point, not the actual last text, so all text is added in reverse
as soon as it hits the visible bounds. Any suggestions greatly appreciated.
set properties of insertion point -1 of thePlacedObjectRef to {applied
paragraph style:"Textblock", applied character style:"Produktnamn",
contents:((item x of item 25 of theJobDef_Rows) as text)}
Regards, Adim Lundin/EBI
_______________________________________________
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