Article View: adobe.scripting.indesign
Article #17773Script to check for unlinked images
From: Richard Ronnback
Date: Fri, 16 May 2003 19:53
Date: Fri, 16 May 2003 19:53
36 lines
1935 bytes
1935 bytes
In the InDesign Mac forum there was a request for the preflight to warn for pasted images. This script helps you find these images and although it could be better written I' m sure, I post it anyway for anyone who wants it:
tell application "InDesign 2.0.2"
activate
tell active document
set myOkFlag to true
set myImages to images of (page items whose content type is graphic)
repeat with i in myImages
if item link of i is {} then
set myOkFlag to false
set mySpread to parent of parent of parent of i
set active spread of window 1 to mySpread
select i
select nothing
tell application "InDesign 2.0.2"
tell active window
zoom given fit spread
end tell
end tell
select i
set myChoice to display dialog "The selected image is not linked. Cancel will exit so you can correct the image. Continue will check for other unlinked images." buttons {"Cancel", "Continue"} default button "cancel"
if button returned of myChoice is "Cancel" then
exit repeat
end if
end if
end repeat
if myOkFlag is true then
display dialog "This document contains no unliked images"
end if
end tell
end tell
Technical Details
Message-ID:
<1de927bb.-1@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,9020e8d2265f17ed,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-05-16 13:08:11 PST From: "Richard Ronnback" <richard.ronnback@telia.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Script to check for unlinked images Message-ID: <1de927bb.-1@WebX.la2eafNXanI> Date: Fri, 16 May 2003 12:53:54 -0700 Lines: 41 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit