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.
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
Thanks for your kind reply. Actualy i need to delete unused layer (ie. There is no link image include in that layer).
I'm try to write script but i can't. I know that Color Space in Pannel option. Some time i forget saw that option.
that's why i need that script.
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();
Thank you very much....
Europe, Middle East and Africa