Article View: adobe.scripting.indesign
Article #15711Re: [AS] Preflight script to scale images... geometric bounds not working
From: Kari_Puikkonen
Date: Tue, 18 Nov 2003 09:25
Date: Tue, 18 Nov 2003 09:25
67 lines
1722 bytes
1722 bytes
Nathan,
I found solution:
if you change these lines:
set myHoriz to horizontal scale of theImage as real
set myVert to vertical scale of theImage as real
to
set myHoriz to horizontal scale of theImage as real
set myVert to vertical scale of theImage as real
set myHorizFrameHeight to horizontal scale of theFrame as real
set myVertFrameWidth to vertical scale of theFrame as real
and change this line
if myHoriz is not 100 and myHoriz = myVert and ImagePath is not in myProcessedLinks
then
to
if myHorizFrameHeight is 100 and myHorizFrameHeight = myVertFrameWidth
and ImagePath is not in myProcessedLinks then
...you get the right 100% result
Ole and The Gurus,
What is this "as real" thing? (Couldn't find that in dictionary) Can I say it in other words/sentence/way? Can I leave it out?
Why I have to change dots to commas in order to avoid disk writing error in Photoshop?
Kari
Technical Details
Message-ID:
<2ccdf3b1.11@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2ccdf3b1.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,bcc0c6dca106f772 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-11-18 01:37:40 PST From: Kari_Puikkonen@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: Re: [AS] Preflight script to scale images... geometric bounds not working Message-ID: <2ccdf3b1.11@webx.la2eafNXanI> Date: Tue, 18 Nov 2003 01:25:08 -0800 References: <2ccdf3b1.-1@webx.la2eafNXanI> Lines: 41 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit