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!