InDesign: Update All Modified Images

indesignThis has actually been added as a command in the latest release of InDesign (curse you Adobe, for improving your software and rendering my scripts obsolete). It still serves as a useful example for how to filter a bunch of objects based on a selector.

Download Update-all-modified-images.rb.zip.

As it’s only little, I’ve decided to let this source code live on the front page.

#!/usr/bin/env ruby

# rb-appscript code by Ian Haigh : http://ianhaigh.com/
# Fri Dec  4 15:54:38 EST 2009

require 'rubygems'
require 'appscript'
include Appscript

ai = Appscript.app('Adobe InDesign CS4.app')

#  Update all modified images
ai.active_document.links[its.status.eq(:link_out_of_date)].update
This entry was posted in indesign. Bookmark the permalink. Trackbacks are closed, but you can post a comment.

One Comment

  1. Posted December 14, 2009 at 10:38 pm | Permalink

    Hi Ian,
    What the hell are you talking about?
    Cheers,
    AP

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  • What’s this all about then?

    rb-appscript is a powerful way to automate your Mac. It's similar to Applescript but it's built in Ruby, which means you get to leverage that language's powerful syntax and libraries. Giving you more time to make toasted sandwiches. You want long-winded explanations? We got those.

    Please note that these scripts are by no means bulletproof, and are intended to provide examples of application scripting. I take no resposibility for any loss of data or mishaps; you download and run everything at your own risk. That said, I use all of these scripts in a production environment every day (well – more accurately, I use some of these scripts in a production environment most days).