Duplicating layers in Quark 6.52

Hi there,

I’ve been playing around with this one trying a few variations on a theme however I haven’t yet found a solution.
I’m trying to duplicate a layer in Quark 6.52, can it be done? If so could someone tell me the syntax please.

I’ve tried making a reference to the layer I’m wanting to duplicate but this hasn’t helped. I can make a new layer ok, but duplicating one is proving a little illusive.

Thanks in advance,

Nick

I don’t think that you can even from the user without scripting what you might have to do is make a new layer and duplicate every item form the original layer to the new layer

mm

Thanks for the reply.

There is an option in the layers palette, it’s a button at the top, that allows you to duplicate a layer and that’s what got me wondering if it was scriptable in some way.

Thanks again for your reply,

Nick

I didn’t see it there but i’ll look again… you still may not be able to through scripting but i’ll keep looking

Thanks for the help with this one.

The other day I waas playing around with this:-

tell application "QuarkXPress"
	set aLayer to object reference of layer "test" of document 1
	get properties of aLayer
end tell

The script returns the properties of the selected layer.

I tried several variations on this trying to create a duplicate of the chosen layer, but as yet I’ve still had no luck. The nearest solution I have is to create a new layer and then move or copy the items to the new layer.

Does anyone know if it is possible to simply duplicate the layer as you would do from the menu on the ‘Layers’ palette? I did try UI scripting that but met a dead end.

Thanks in advance,

Nick

Nick,

I really wish I could see this menu but I do not see a menu or even a duplicate button on the layer palette. There is a duplicate button on the page layout palette is that what your are referring to ?

mm

Thanks for the reply.

If you open a page in Quark, then open the Layers palette. If you control-click the layer you should be able to see a ‘Duplicate’ option, it then says the name of th layer. That’s what I’m to script.

As mentioned I have a version that creates a new layer and copies everything from one to the other however I was wondering if there is some way the ‘duplicate’ command could be used.

Thanks again,

Nick

there is no “duplicate-layer” option.

greets
TMA

Hi

“Duplicate Layer” is a Contextual menu, Like Nik says control click or right click if you have a two button mouse!

Yeah as it turns out I turn the control key to activate the zoom tool rather than the contextual menu… I see it now however I’m still not sure how to do a simple duplication of a layer in the script

sorry, there is no context menu…