• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Export to multiple locations?

Explorer ,
Oct 28, 2019 Oct 28, 2019

Copy link to clipboard

Copied

Is there a way to either natively, via script or plugin that will allow me to export out an InDesign document (PDF in this case) out to different locations at once? For example, I'd like to export one copy to a folder/directory on the server for review and another copy locally for internal review. My instinct was to just create an "Action" but I don't believe ID has this capability. Is there a way to accomplish this? Any help would be appreciated. Thanks. 

 

 

 

TOPICS
Feature request , How to , Import and export , Scripting

Views

713

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 28, 2019 Oct 28, 2019

Copy link to clipboard

Copied

macOS? Windows?

Mike Witherell

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 28, 2019 Oct 28, 2019

Copy link to clipboard

Copied

MacOS. Sorry. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 28, 2019 Oct 28, 2019

Copy link to clipboard

Copied

"At once", no, that's not gonna happen. If you want 2 PDFs, you need to export twice.

Exporting once and then copying that file is faster.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 28, 2019 Oct 28, 2019

Copy link to clipboard

Copied

I create actions in Photoshop, saving out multiple times to different locations and it saves a crapload of time. I know ID isn't PS but figured I'd ask the question since the action of saving out to different locations seems to be workflow option for some.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 28, 2019 Oct 28, 2019

Copy link to clipboard

Copied

macOS has folder actions as a possibility for a watched folder. macOS has Automator utility, too.

Mike Witherell

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 28, 2019 Oct 28, 2019

Copy link to clipboard

Copied

Interesting. I remember an app called "Hazel" and I think it does just that. I might have to look into that further. Thank you!  

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 28, 2019 Oct 28, 2019

Copy link to clipboard

Copied

If you know some AppleScript it’s not too hard to setup folderscripts. In your System Library there should a Scripts folder.

 

Screen Shot.png

 

Inside there should be a Folder Actions folder with a script for enabling folder actions (Enable Folder Actions), and one for attaching a script to a folder (Attach Script to Folder).

 

Folder scripts have to be saved into the Folder Action Scripts folder and the script code has to have an on adding folder items to function.

 

So this simple script would move items saved to a designated hot folder to the myDestination folders (you would have  to edit the paths):

--variables must be set with property keyword. Here the paths to the folders
property myDestination01 : "Volume:Users:username:Folder1:"
property myDestination02 : "Volume:Users:username:Folder2:"

on adding folder items to hotfolder after receiving added_items
	
	tell application "Finder"
		
		set thepath to item 1 of added_items as alias
		duplicate thepath to myDestination01 with replacing
		duplicate thepath to myDestination02 with replacing
		
		--cleanup
		move file thepath to trash with replacing
	end tell
	
end adding folder items to

 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 28, 2019 Oct 28, 2019

Copy link to clipboard

Copied

Hazel was my thought as well. I'm always finding uses for it, like automatically optimizing PNGs in a watch folder or sorting downloads into Achives, Images, Movies, Music, Disk Images, etc.

 

For example, I have Hazel put any compressed files into an Archives folder, then decompress them. If the decompressed file contains only images the entire folder is moved to a Pictures folder. If it cointains an InDesign ifle it is moved to a work in progress folder, etc.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 29, 2019 Oct 29, 2019

Copy link to clipboard

Copied

The other solutions proposed may be more effective, but this is easily scriptable in ID, too. You can make it as complicated if you want, say if you need to change the export presets. The script below just would export them all using the Px1a preset. 

 

 

 

 

var doc = app.activeDocument;
var px1aPreset = app.pdfExportPresets.itemByName("[PDF/X-1a:2001]");

var arrayOfPaths = [
"~//myPath1//subfolder//",
"~//myPath2//subfolder//",
etc.
];

for (var i = 0; i < arrayOfPaths.length; i++) {
   var f = new File(arrayOfPaths[i] + doc.name + ".pdf");
   doc.exportFile(ExportFormat.PDF_TYPE, f, false, px1aPreset);
}

 

 

 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 30, 2019 Oct 30, 2019

Copy link to clipboard

Copied

LATEST

@brainp311  Thank you for taking the time and insight. At this point, I really don't script and I'm sure if I spent some time I can get the hang of it but, I'm so busy I can't dedicate time to making this happen via script. Seem like "Hazel" is a good solution and can be applied to other tasks besides this specific export issue. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines