• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
InDesign, text frame contents, point size not applied to all lines
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: InDesign, text frame contents, point size not applied to all lines
      • From: "Shane Stanley" <email@hidden>
  • Prev by Date: Re: Creating preferences for an applescript application
  • Next by Date: SV: Creating preferences for an applescript application
  • Previous by thread: Re: include a file
  • Next by thread: Re: InDesign, text frame contents, point size not applied to all lines
  • Index(es):
    • Date
    • Thread