copy a layer between 2 indesign CS3 documents

Hi all,

I have a lot of InDesign files of which I need to copy 1 layers (with name: “English”) to another InDesign document. Is there a way to do this automatically?

thanks in advance,

grtz

Kris

All,

I managed myself :wink:

Here’s what my applescript looks like:

tell application "Adobe InDesign CS3"
	tell document "test2.indd"
		set f to every page item of layer "english"
	end tell
end tell
tell application "Adobe InDesign CS3"
	tell document "test.indd"
		make new layer at end with properties {name:"english"}
	end tell
end tell
tell application "Adobe InDesign CS3"
	duplicate f to layer "english" of document "test.indd"
end tell

It works! Now I need to find a way to copy also the items wich are in the layer “english” but on the Masterpage. With this script, those elements are not copied along :frowning:

grtz

Kris

Hi Kris!

It works for me too!! Thank you so much

Hi,

this is how you ‘unlock’ the items on your page which are on your masterpage so you can copy them along:

Greetz

Why not such a stripped version :

tell application "Adobe InDesign CS3"
	tell document "test2.indd"
		set f to every page item of layer "english"
	end tell

	tell document "test.indd"
		make new layer at end with properties {name:"english"}
		duplicate f to layer "english" 
	end tell
end tell

Yvan KOENIG running Sierra 10.12.1 in French (VALLAURIS, France) lundi 28 novembre 2016 16:55:59