🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.scripting.indesign
1 messages
1 total messages Started by hm24_arul Mon, 09 Mar 2009 05:38
Relink book file
#687
Author: hm24_arul
Date: Mon, 09 Mar 2009 05:38
26 lines
1437 bytes
Hi scripters

Here I am updating book file.contents from one folder to another folder. Below is my code I used to update the book file. While I am executing this script It's processing for sometime and finally closes the Indesign application.

var new_folder = 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(new_folder + "/" + chname); if (mynewfile.exists) { bb[i].replace (File (mynewfile)); } }

The error shown 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
---------------------------

Please advice me where I am mistaken?

thanks in advance

regards
a r u l
vpublish.net
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