🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #18234

Re: Reveal linked image in finder

#18234
From: Olivier Berquin
Date: Thu, 10 Apr 2003 10:04
29 lines
1455 bytes
Hi Marcus,

I wrote this but no tested in every conditions !
It works for mine in MacOS X, but I think that must be the same in Classic (OS 9, 8, ...).



  
tell application "InDesign 2.0.2"  
	set theSelection to item 1 of selection  
	set theClass to class of theSelection  
	if theClass is in {EPS, PDF} then -- if the image is selected by direct tools  
		set theSelection to parent of theSelection  
	end if  
	-- try to get the file path of the item:  
	set theFilePathOfImage to file path of item link of page item 1 of theSelection  
end tell 

tell application "Finder"  
	activate  
	select file theFilePathOfImage  
end tell  




HTH

Olivier
Technical Details
Message-ID: <1de8ad94.0@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!newsfeeds.sol.net!hammer.uoregon.edu!logbridge.uoregon.edu!xmission!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de8ad94.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,a9890b88abefb194,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-04-10 03:07:57 PST
From: "Olivier Berquin" <olb@microscript.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!newsfeeds.sol.net!hammer.uoregon.edu!logbridge.uoregon.edu!xmission!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Reveal linked image in finder
Message-ID: <1de8ad94.0@WebX.la2eafNXanI>
Date: Thu, 10 Apr 2003 03:04:10 -0700
References: <1de8ad94.-1@WebX.la2eafNXanI>
Lines: 28
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit