InDesign, text frame contents, point size not applied to all lines
InDesign, text frame contents, point size not applied to all lines
- Subject: InDesign, text frame contents, point size not applied to all lines
- From: Jake Pietrykowski <email@hidden>
- Date: Mon, 22 Nov 2004 12:21:14 -0600
Title: InDesign, text frame contents, point size not applied to all lines
Hi all,
Well, InDesign scripting is a tad bit different than Quark, but all for good reason! ;-)
My problem is this...the point size, is ONLY being applied to the text that currently fits in the text frame! Are there any alternatives to setting properties to the text content? Why does it only set the format of the visible text in the box? Can I set default properties of the text frame to be applied to ALL CONTENTS?
If I uncomment the two lines setting leading and point size to 1, it all works, because then ALL of the text is visible in the box, at the small 1pt size.
tell application "InDesign CS"
activate
-- this is the text frame contents
set frameContents to ("NO POSTAGE" & return & "NECESSARY" & return & "IF MAILED" & return & "IN THE" & return & "UNITED STATES") as string
set newDocument to make document
tell newDocument
set newTextFrame to make text frame with properties {geometric bounds:{"0", "0", "1in", "1in"}, fill color:swatch "None", stroke color:swatch "Black", stroke weight:"1pt", content type:text type, contents:frameContents, text frame preferences:{vertical justification:center align}}
tell newTextFrame
tell every line
--set point size to 1
--set leading to 1
set point size to 8
set leading to 9
set applied font to "Helvetica"
set font style to "Bold"
end tell
end tell
end tell
end tell
Thanks,
Jake
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden