Skip navigation
Currently Being Moderated

Script or function for flipped images

Oct 10, 2011 12:04 PM

Hi

 

My team is an in-house creative team on a MAC environment. We do our own preflighting. From time to time vendors send us backward images. Some slip through the cracks before placing them in InDesign and we have to manually inspect each image before sending to a print vendor. Is there a script or an InDesign function that checks for this?

 

Thanks,

Johnny_Bigtime

 
Replies
  • Rob Day
    2,329 posts
    Oct 16, 2007
    Currently Being Moderated
    Oct 10, 2011 12:19 PM   in reply to Johnny_Bigtime

    In scripting you can check for the flipped state of a frame or image in InDesign but not in Photoshop, so if it's the  image file that's wrong reading I think you're out of luck.

     
    |
    Mark as:
  • Rob Day
    2,329 posts
    Oct 16, 2007
    Currently Being Moderated
    Oct 10, 2011 7:18 PM   in reply to Johnny_Bigtime

    This sets the flip of every link and its frame to none. Note that the flip is relative to the Transform Panel's Reference Point

     

    tell application "Adobe InDesign CS5.5"

              tell active document

                        set IDLinks to links

                        repeat with myCounter from 1 to count IDLinks

                                  set absolute flip of parent of item myCounter of IDLinks to none

                                  set absolute flip of parent of parent of item myCounter of IDLinks to none

                        end repeat

              end tell

    end tell

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 10, 2012 9:06 AM   in reply to Rob Day

    Rob I am having a lot of trouble getting this to work. I'm using CS4, would this be problem? I've saved the file as a .jsx and put into scripts but it gives me an error code 25, telling me it has found offending text, that being the first word of the first line. I only have started looking into scripts so I'm not sure how to fix this.

     
    |
    Mark as:
  • Rob Day
    2,329 posts
    Oct 16, 2007
    Currently Being Moderated
    Aug 10, 2012 10:40 AM   in reply to bamuk

    The code is for AppleScript. Are you using OSX? If so paste into Script Editor, click Compile, and Save. The extention is .scpt

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 10, 2012 11:31 AM   in reply to Rob Day

    Intriguing, but the original question was about checking for flipped images, not "fixing" them. I would be pretty upset if I flipped an image on purpose and someone "fixed" it back again. And in some cases (such as when the image is flipped and then also cropped), the result of removing the flip could be disasterous.

     

    There ought to be a way to do this in the Preflight panel, but I don't think there is. But a way to check for it as a preflight process would be terrific, providing a list of instances, with links to them, etc.

     

    (And of course, it being javascript so that Windows users could use it, too, would be even better.)

     
    |
    Mark as:
  • Rob Day
    2,329 posts
    Oct 16, 2007
    Currently Being Moderated
    Aug 10, 2012 11:48 AM   in reply to David Blatner

    I would be pretty upset if I flipped an image on purpose and someone "fixed" it back again. And in some cases (such as when the image is flipped and then also cropped), the result of removing the flip could be disasterous.

     

    I assumed the OP thought about the downside—I'm just a messenger

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 10, 2012 1:15 PM   in reply to Rob Day

    Yes David I do get upset when I find my layouts and templates with flipped images, a script would save my temper!

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points