[Quark] New layer name issue

I tried using the following script to create a new layer in Quark, and it works fine…

tell application "QuarkXPress Passport"
	activate
	tell document 1
		if not (layer "New" exists) then make new layer at end with properties {name:"New"}
	end tell
end tell

However, before I save the document, if I click the eye icon (visibility) beside the newly created layer (in this example is “New”) to off, the name of the newly created layer will immediately change to “Layer 1”.

May I know how to overcome this issue? Please advise!
Tks in advance!

Hi

Try saving the document then close it, then open it up again.
This can be done in the script easy enough, it does look like a bug.

It is a Quark-scripting bug. I experienced the same behavior with Quark 7.2.

Thank you for your prompt reply.

Since it looks like is a bug, then I have no choice but to live with it.