unlock layers

Most of the Indesign documents I recieve have locked layers.

How can I unlock them using AS?

I have tried but did not find the correct syntax yet.

tell application "Adobe InDesign CS3"
tell active document
set unlock layers to false
tell layer properties of active document to unlock
end tell
end tell

G5

Posted on Jun 25, 2008 6:56 AM

Reply
3 replies

Jun 25, 2008 12:45 PM in response to Fist

Hi Fist

Try something like the below for pre labelled layers:


tell application "Adobe InDesign CS3"
activate
set myDocument to active document
set LayerName to "TEST"
tell myDocument
try
set myLayer to layer LayerName
set the properties of myLayer to {locked:false}
end try
end tell
end tell

or for all layers use:

tell application "Adobe InDesign CS3"
activate
set myDocument to active document
tell myDocument
try
set the properties of every layer to {locked:false}
end try
end tell
end tell





Budgie

Jun 26, 2008 12:13 PM in response to Fist

Hey Fist, you can download the CS3 scripting guide from here.

http://wwwimages.adobe.com/www.adobe.com/products/indesign/scripting/pdfs/InDesi gnCS3ScriptingGuideAS.pdf

also their is a great set of scripts avaiable from the below link, Applescript, Javscript, and vbscripts are provided.


http://wwwimages.adobe.com/www.adobe.com/products/indesign/scripting/downloads/i ndesigncs3_guidescripts.zip



hope this helps

Budgie

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

unlock layers

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.