Article View: adobe.scripting.indesign
Article #15813Re: AS-2.0.2-Horizontal Scaling of Text
From: Peter_Truskier
Date: Thu, 06 Nov 2003 01:30
Date: Thu, 06 Nov 2003 01:30
20 lines
1354 bytes
1354 bytes
Well, following up on your suggestions, I now have it working, but am puzzled by why it worked at all in the original attempt, even if only under certain circumstances.
Here's what works:
set theStory to parent story of theFrame
set theChars to a reference to every character of theStory
set numChars to count (characters of theStory)
tell theFrame
repeat until overflows is false
repeat with i from 1 to numChars
set theChar to (a reference to character i of theStory)
tell theChar
set horizontal scale to 0.9 * horizontal scale
end tell
end repeat
end repeat
end tell
Thanks, Dave and Jay
Technical Details
Message-ID:
<2cce3956.10@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2cce3956.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,c53fbda946236634 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-11-05 17:37:53 PST From: Peter_Truskier@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Re: AS-2.0.2-Horizontal Scaling of Text Message-ID: <2cce3956.10@webx.la2eafNXanI> Date: Wed, 5 Nov 2003 17:30:57 -0800 References: <2cce3956.-1@webx.la2eafNXanI> Lines: 22 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit