• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: INDESIGN/PHOTOSHOP: Finding Multi-layered Images
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: INDESIGN/PHOTOSHOP: Finding Multi-layered Images


  • Subject: RE: INDESIGN/PHOTOSHOP: Finding Multi-layered Images
  • From: Rick Gordon <email@hidden>
  • Date: Fri, 30 Aug 2013 01:18:45 -0700

Title: RE: INDESIGN/PHOTOSHOP: Finding Multi-layered Images
I got it. It's not listed in properties, but if a layer exists, getting graphic layer 1 of graphic layer options of an image will work. If it's flat, that will error. So a stub script is:

So th

tell application "Adobe InDesign CS5.5"
tell
document 1
        set
vList to all graphics
               set
vLayeredFiles to {}
        repeat with
vItem in vList
                      tell
graphic layer options of vItem
                             try
                                     set end of
vLayeredFiles to graphic layer 1
                             on error
                                        set end of
vLayeredFiles to "FLAT"
                              end try
                end tell
                end repeat
      end tell
        return
vLayeredFiles
end tell

Rick Gordon

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

On 8/30/13 at 1:04 AM -0700, Rick Gordon wrote in a message entitled
"INDESIGN/PHOTOSHOP: Finding Multi-layered Images":

I'm trying to find a way to bulk search a group of files (which would all be PSDs) to determine which of them is not flattened. Even better to flag only files that have at least two layers or if single-layered, does not contain a smart object.

But I suspect that just finding unflattened images and then ignoring simple single layers might be easier.

I'd really like to do it without having to open the images, which would be time-consuming.

Since the images are placed in a group of InDesign documents (which are referenced in a book document), I was thinking that parsing each doc for all images and then searching for graphic layers might be the way to go. But I'm confused as to what is the parent of a graphic layer. The dictionary says:

graphic layer n : A layer in a PSD image or PDF file.
contains events, event listeners, graphic layers; contained by graphic layers, graphic layer options.

And I can get the graphic layer options of an image, but I don't see any graphic layer properties.

What am I missing here, or am I barking up the wrong tree?

I'm open to a non-InDesign approach here, too. But having to have Photoshop open every image to return a result seems uninviting.
--
___________________________________________________

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___________________________________________________

WWW:   http://www.shelterpub.com

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
>kgordon.com
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


--
___________________________________________________

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___________________________________________________

WWW:   http://www.shelterpub.com
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • INDESIGN: Graphic Layers - What are section divider layers & separator layers?
      • From: Rick Gordon <email@hidden>
References: 
 >INDESIGN/PHOTOSHOP: Finding Multi-layered Images (From: Rick Gordon <email@hidden>)

  • Prev by Date: INDESIGN/PHOTOSHOP: Finding Multi-layered Images
  • Next by Date: INDESIGN: Graphic Layers - What are section divider layers & separator layers?
  • Previous by thread: INDESIGN/PHOTOSHOP: Finding Multi-layered Images
  • Next by thread: INDESIGN: Graphic Layers - What are section divider layers & separator layers?
  • Index(es):
    • Date
    • Thread