Hi Everyone!,
I am new baby to indesign scripting and anyone to help me find that below indesign script.
How do i delete unused layer in indesign CS4? and how do know linked image mode like CMYK, RGB, LAB.
Thanks in Advance.
- yajiv
i know of one which only gets rid of invisible layers which can be found at:
alternatively, google the script "inwash.jsx" by vitaly batushev
in terms of finding out if a linked image is CMYK, RGB, LAB etc, this can be done from the links panel itself from CS4 and up. If you can't see it at the moment, go to the panel options within the links panel and select the following:
this is only really useful for rasters such as tiffs, jpgs etc. it won't advise if a PDF contains RGB, CMYK etc for example.
i know it's not what the OP was hoping for, but hope it helps
Hi Harbs!
Thanks for you reply.
I used your above script, slightlty modify and Its work fine.
Here th modify code...
var layers = app.activeDocument.layers.everyItem().getElements();
for(var i=layers.length-1;i>=0;i--){
if(layers[i].pageItems.length==0){
layers[i].remove();
}
}
Thank you very much.... ![]()
-yajiv
North America
Europe, Middle East and Africa
Asia Pacific