Question
[JS CS2] How to replace Documents in Books (after moving folders...)
Hello
I need to replace the Documents referred to by a Book.
I was expecting using something like
app.books[0].bookContents.item(i).replace( File( myNewFullName ) ) ;
but after many retries to find a correct form for myNewFullName (absoluteURI, ...)... ID always stops.
Would somebody have a working example for the replace() function applied to a bookContent ? Or a nice advice for a beginner in JS and InDesign ?
Note : I'm with ID CS2 under Windows XP SP2.
Thanks !
I need to replace the Documents referred to by a Book.
I was expecting using something like
app.books[0].bookContents.item(i).replace( File( myNewFullName ) ) ;
but after many retries to find a correct form for myNewFullName (absoluteURI, ...)... ID always stops.
Would somebody have a working example for the replace() function applied to a bookContent ? Or a nice advice for a beginner in JS and InDesign ?
Note : I'm with ID CS2 under Windows XP SP2.
Thanks !