🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.scripting.indesign
5 messages
5 total messages Started by peterhedrington Tue, 24 Feb 2009 23:04
[JS] how to package an InDesign document
#975
Author: peterhedrington
Date: Tue, 24 Feb 2009 23:04
15 lines
1263 bytes
I am trying to script the packaging of InDesign files.

function packageForPrint (to, copyingFonts, copyingLinkedGraphics, copyingProfiles, updatingGraphics, ignorePreflightErrors, creatingReport, versionComments, forceSave){
	app.activeDocument.packageForPrint (Folder.desktop, true, true, true, true, true, true, true, true);
	}

I thought the packageForPrint was the way to go. But I can't get the correct structure.

Can someone give me a clue as the direction I need to go with this.

I am using InDesign CS2 on a Mac. But want the script to work cross platform.

Any help would be appreciated.

Peter Hedrington
Re: [JS] how to package an InDesign document
#986
Author: Kasyan_Servetsky
Date: Wed, 25 Feb 2009 07:14
4 lines
807 bytes
Your syntax is for CS3, for CS2 you should use:
packageForPrint(to, copyingFonts, copyingLinkedGraphics, copyingProfiles, updatingGraphics, includingHiddenLayers, ignorePreflightErrors, creatingReport)

Kasyan
Re: [JS] how to package an InDesign document
#987
Author: Kasyan_Servetsky
Date: Wed, 25 Feb 2009 07:19
3 lines
813 bytes
I can't test it in CS2 right now, but hope it should work:

app.activeDocument.packageForPrint(Folder.desktop, true, true, true, true, true, true, true);
Re: [JS] how to package an InDesign document
#914
Author: peterhedrington
Date: Wed, 25 Feb 2009 18:37
7 lines
895 bytes
Kasyan,

Thank you. That was just what I needed.

Still had some trouble with how to correctly write the file path. It had to be the full path separated by a colon. But again thank you it works fine now.

Peter
Re: [JS] how to package an InDesign document
#937
Author: Kasyan_Servetsky
Date: Thu, 26 Feb 2009 07:27
18 lines
1080 bytes

      Still had some trouble with how to correctly write the file path.




You can find detailed information about it in ‘File System Access’ chapter of JavaScript Tools Guide. Or use this script – it writes the path of the selected folder to console.

Kasyan



var myFolder = Folder.selectDialog ("Choose a Folder"); 
if(myFolder != null){ 
   $.writeln("fsName - " + myFolder.fsName); 
   $.writeln("absoluteURI - " + myFolder.absoluteURI); 
}
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