Skip to main content
TᴀW
Legend
November 17, 2009
Question

Set all placed Photoshop images in bitmap mode to overprint? IDCS4

  • November 17, 2009
  • 1 reply
  • 2907 views

Hello,

Is there anyone familiar with the object model well enough to be able to help me with the following easily:

I need to go through all the placed images in the activeDocument. If the image is a Photoshop document in bitmap mode (1-bit mode), it needs to have it's Fill set to overprint (UI would be: Attributes Palette>Overprint Fill).

Any help would be much appreciated.

Thank you,

Ariel

This topic has been closed for replies.

1 reply

TᴀW
TᴀWAuthor
Legend
November 17, 2009

okay, here's where I am now:

mydoc= app.activeDocument.allGraphics[0].imageTypeName

This returns "Photoshop" if it's a Photoshop placed image. But, how do I figure out if it's in bitmap mode?

TᴀW
TᴀWAuthor
Legend
November 17, 2009

As this is urgent for me, I'm posting my slow progress, but if anyone can speed things up for me it really would be soo helpful!

okay, in the UI Info palette there is an entry called: Color Space. If the image is bitmap, this shows "Black and White". How do I access this in the object model? Color Space does not seem to be a property of graphic.

Harbs.
Legend
November 17, 2009

Hi Ariel,

I don't see a way within the DOM to find the color space of a placed

image. The only two ways I can think of off-hand is to have Photoshop

do that for you, or to parse the image file.

You might be able to figure it out with an educated guess based on the

file name (i.e. tif or jpeg, etc.) and file size as well.

Harbs

http://www.in-tools.com

Innovations in Automation