🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #9182

Re: JS CS2 resize graphics

#9182
From: Dave_Saunders
Date: Sat, 09 Sep 2006 20:22
12 lines
1357 bytes
Yes it's possible:

myGraphics = app.documents[0].allGraphics; 
for (var j = myGraphics.length - 1; j >= 0; j--) { 
  myGraphics[j].horizontalScale = myGraphics[j].verticalScale; 
}

See: you just about wrote the script in describing what you wanted.

This is a JavaScript. To use the script, copy and paste to ExtendScript Toolkit and save with an appropriate name in the form YourName.jsx in the Scripts folder of the Presets folder of your InDesign CS2 folder (you could put it in a subfolder if you wish). Then to run the script, set-up the appropriate initial conditions and double-click the script's name in the Scripts palette.

Dave
Technical Details
Message-ID: <3bc19110.0@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!news.glorb.com!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!news.ispa.de!news.buerger.net!open-news-network.org!news.isoc.lu!webcrossing
References: <3bc19110.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,19e578266b03ae58
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Dave_Saunders@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!news.glorb.com!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!news.ispa.de!news.buerger.net!open-news-network.org!news.isoc.lu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: JS CS2 resize graphics
Message-ID: <3bc19110.0@webcrossing.la2eafNXanI>
Date: Sat, 9 Sep 2006 13:22:01 -0700
References: <3bc19110.-1@webcrossing.la2eafNXanI>
Lines: 15
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit