🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #8855

Re: JS to copy spreads of docs of a directory to a new document

#8855
From: Martin Fischer*
Date: Mon, 25 Sep 2006 11:51
20 lines
1263 bytes
Well, I have found the reason that makes InDesign crash:

      myTargetDoc.save(myColFile);




saves the target doc with (another) name (as known earlier).
And

      myTargetDoc.close(SaveOptions.no);




will not be found afterwards because the doc referenced by myTargetDoc doesn't exist after saving myTargetDoc with a new name.

Now it is indicated to close the target doc referencing it by it's new name: app.documents.item(myCollectedFileName).close(SaveOptions.no);

Martin
Technical Details
Message-ID: <3bc1c201.0@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!news.albasani.net!news.isoc.lu!webcrossing
References: <3bc1c201.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,d496ada15f5bb3fa
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Martin Fischer*" <martin.fischer@online.de>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!news.albasani.net!news.isoc.lu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: JS to copy spreads of docs of a directory to a new document
Message-ID: <3bc1c201.0@webcrossing.la2eafNXanI>
Date: Mon, 25 Sep 2006 04:51:07 -0700
References: <3bc1c201.-1@webcrossing.la2eafNXanI>
Lines: 16
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit