Thread View: adobe.scripting.indesign
1 messages
1 total messages
Started by hm24_arul
Tue, 17 Mar 2009 12:11
Adobe InDesign is shutting down. A serious error was detected
Author: hm24_arul
Date: Tue, 17 Mar 2009 12:11
Date: Tue, 17 Mar 2009 12:11
46 lines
1461 bytes
1461 bytes
Dear scripters
here I am trying to relink the book contents from different path. While I am running this script my indesign cs2 is shutting down.
the error is below
---------------------------
Adobe InDesign
---------------------------
Adobe InDesign is shutting down. A serious error was detected. Please restart InDesign to recover work in any unsaved InDesign documents.
---------------------------
OK
---------------------------
This is my script
var myFolder = Folder.selectDialog("Please select a folder");
bb = app.books[0].bookContents;
for (i = 0; i < bb.length; i++)
{
chname= File(bb[i].fullName).name;
mynewfile = File(myFolder + "/" + chname);
if (mynewfile.exists) {
bb[i].replace (File (mynewfile));
$.writeln (mynewfile)
app.books[0].save();
}
}
Please advice me how to solve this prob?
thanks in advance
regards
a r u l
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads