Skip to main content
October 30, 2013
Question

Clipping Paths in InDesign

  • October 30, 2013
  • 2 replies
  • 1403 views

Hi

I am working on an Indesign document (brochure) that contains hundreds of images. Is there a way I can select all images and run a command to show the clipping path (if there is one and if it isn't already highlighted).

I don't really want to check each image individually to check if the clipping path option is shown.

Thanks in advance

This topic has been closed for replies.

2 replies

AnshulJain19
Adobe Employee
Adobe Employee
November 13, 2013

Hi Jenjmay,

If you want to apply clipping path to all the images in your document then you can use following script

--------------------------------------------------

myDoc = app.activeDocument

length = myDoc.allGraphics.length

for (i=0;i<length;i++)

{

   try

   {

    myDoc.allGraphics.clippingPath.clippingType = ClippingPathType.PHOTOSHOP_PATH

   }

    catch(err)

    {

    }

}

-----------------------------------------------------

Regards

-Anshul

November 13, 2013

Hi Anshul

Thanks for your reply.

I am using version CS6 and have tried to add this script as a .txt file and it displays the message 'This file is not executable by any supported script language'

Can you help? (I am a beginner when it comes to scripting as you can probably tell!)

Regards

Jen

Larry G. Schneider
Community Expert
Community Expert
November 13, 2013

Try replacing the .txt extension with .jsx, placing in the Adobe InDesign CSX>Scripts>Scripts Panel and then running the script from there.

Peter Spier
Community Expert
Community Expert
October 30, 2013

Moved to the Scripting forum...