🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #16908

Needed Links

#16908
From: Kim Kohen
Date: Thu, 17 Jul 2003 11:59
20 lines
1524 bytes
All,

I'm using the following snippet to get a count of graphic links:

tell application "InDesign 2.0.2"
	set thedoc to active document
	tell thedoc
		set theitems to links where needed is true
	end tell
end tell

I occasionally get what appears to be an incorrect result. I can have two images in a document (which show in the links palette) and the script will return 1. If I comment out 'where needed is true' it returns the correct count.

Is there any circumstance where a linked graphic would not be considered needed?

Also, I've been having a lot of trouble with the package command not copying all the linked graphics and sometimes even the actual document. Are there any known issues with the package command?

cheers

kim
Technical Details
Message-ID: <1de9f4b7.-1@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!skynet.be!skynet.be!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!WebX

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,beb6c506149b0883,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-07-17 05:07:48 PST
From: "Kim Kohen" <kim@webguide.com.au>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!skynet.be!skynet.be!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Needed Links
Message-ID: <1de9f4b7.-1@WebX.la2eafNXanI>
Date: Thu, 17 Jul 2003 04:59:07 -0700
Lines: 26
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit