Article View: adobe.scripting.indesign
Article #2389Re: creating TOC from a Book file
From: Peter Kahrel
Date: Fri, 02 Jan 2009 20:16
Date: Fri, 02 Jan 2009 20:16
12 lines
960 bytes
960 bytes
Eric,
You do this:
. . .
myBook = String (myBook);
. . .
app.activeDocument.createTOC(myTOCStyle, true, myBook, [42, 123], true);
The description in the OMV says that myBook should be of type Book, but you pass a string to createTOC(). Maybe instead of myBook = String(myBook), try something like myBook = app.books.item ("soandso").
Peter
Technical Details
Message-ID:
<59b7692a.0@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newshub.sdsu.edu!webcrossingReferences:
<59b7692a.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,ee2d4738f24ddaea X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Peter Kahrel" <kahrel@kahrel.plus.com> Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: creating TOC from a Book file Message-ID: <59b7692a.0@webcrossing.la2eafNXanI> Date: Fri, 2 Jan 2009 12:16:34 -0800 References: <59b7692a.-1@webcrossing.la2eafNXanI> Lines: 15 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit