🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #14719

Re: java script to resize all imported images in InDesign CS doc on Mac

#14719
From: Shane_Stanley
Date: Mon, 19 Jan 2004 10:31
31 lines
1706 bytes
I can't help you with javascript, but here's an AppleScript script that 
will do what you asked for:

tell application "InDesign CS"
	set transform reference point of window 1 to center anchor -- or where 
you want
	with timeout of 600 seconds
		set properties of all graphics of document 1 to {horizontal scale:96, 
vertical scale:96}
	end timeout
end tell

or:

tell application "InDesign CS"
	resize all graphics of document 1 horizontal scale 96 vertical scale 
96 around center anchor without considering current scale and 
considering parents scale
end tell

If, however, you want to scale them to 96% of whatever they are now, 
then try:

tell application "InDesign CS"
	resize all graphics of document 1 horizontal scale 96 vertical scale 
96 around center anchor with considering current scale without 
considering parents scale
end tell

--
Shane Stanley <sstanley@myriad-com.com.au>
Technical Details
Message-ID: <ABFE5B8E-4A6A-11D8-B512-003065D61B90@myriad-com.com.au>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!easynet-monga!easynet.net!newsfeed.arcor-online.net!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2ccf7204.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,eb1a4e832e1dd231
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2004-01-19 02:37:36 PST
From: Shane_Stanley@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!easynet-monga!easynet.net!newsfeed.arcor-online.net!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: java script to resize all imported images in InDesign CS doc on Mac
Message-ID: <ABFE5B8E-4A6A-11D8-B512-003065D61B90@myriad-com.com.au>
Date: Mon, 19 Jan 2004 02:31:41 -0800
References: <2ccf7204.-1@webx.la2eafNXanI>
Lines: 35
X-Mailer: Apple Mail (2.609)
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit