Article View: adobe.scripting.indesign
Article #707Adobe InDesign is shutting down. A serious error was detected
From: 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
Technical Details
Message-ID:
<59b83b22.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,a3c0db6756b4f37,start X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: hm24_arul@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Adobe InDesign is shutting down. A serious error was detected Message-ID: <59b83b22.-1@webcrossing.la2eafNXanI> Date: Tue, 17 Mar 2009 05:11:02 -0700 Lines: 48 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit