🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #15708

is it possible to get profile in CS

#15708
From: peter_long
Date: Tue, 18 Nov 2003 01:32
38 lines
1932 bytes
I want a quick overview of linked graphics and can get a bunch of info. But when I look for the profile, All AS returns is "embedded".

The Get Info on the graphic in normal layout view sees the various profiles but I don't see how to get it within applescript without having to go thru photoshop.

Adding effective resolution in "CS" is great as it skips a trip thru photoshop and a bit of math.

Peter

example

 
tell application "InDesign CS" 
	set x to {} 
	tell document 1 
		set theLinks to every link whose link type = "TIFF" or link type = "JPEG" or link type = "photoshop" 
		repeat with theLink in theLinks

			try 
				set PageNumber to "pb" 
				set myParent to parent of theLink 
				if class of myParent is not page then 
					repeat until class of myParent is page 
						if class of myParent is character then 
							set myParent to parent text frame of myParent 
						else 
							set myParent to parent of myParent 
						end if 
					end repeat 
				end if 
				set PageNumber to name of myParent 
			end try

			set end of x to the "page:" & PageNumber & tab & name of theLink & tab & item 1 of effective ppi of the parent of theLink & tab & space of the parent of theLink & return 
		end repeat 
	end tell 
	--display dialog x as string 
	set the clipboard to x as string 
end tell
Technical Details
Message-ID: <2cce7186.-1@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!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,3817476d8d7f764d,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-11-17 17:37:49 PST
From: peter_long@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: is it possible to get profile in CS
Message-ID: <2cce7186.-1@webx.la2eafNXanI>
Date: Mon, 17 Nov 2003 17:32:04 -0800
Lines: 44
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit