Article View: adobe.scripting.indesign
Article #672Re: AppleScripting an InDesign Paragraph Style
From: Agustin_Moran
Date: Fri, 06 Mar 2009 21:12
Date: Fri, 06 Mar 2009 21:12
26 lines
1398 bytes
1398 bytes
Well, I was given this, and it almost worked!
Type is formatted spot-on, but the tab info is not included!
Any idea's on the correct syntax for tabs?
on SetTextStyles()
tell application "Adobe InDesign CS2"
tell active document
try
set firstLineStyle to paragraph style "FirstLine"
on error
set firstLineStyle to make new paragraph style with properties {name:"FirstLine"}
end try
try
set applied font of firstLineStyle to "BentonGothicCond"
set font style of firstLineStyle to "Bold"
set point size of firstLineStyle to 8
set leading of firstLineStyle to 9.5
set tracking of firstLineStyle to -20
set kerning method of firstLineStyle to "Optical"
set tab list of firstLineStyle to [{position:140, alignment:right}]
end try
end tell
end tell
end SetTextStyles
Technical Details
Message-ID:
<59b81da5.1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossingReferences:
<59b81da5.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,80e8b4130ce9b2e9 X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Agustin_Moran@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: AppleScripting an InDesign Paragraph Style Message-ID: <59b81da5.1@webcrossing.la2eafNXanI> Date: Fri, 6 Mar 2009 13:12:38 -0800 References: <59b81da5.-1@webcrossing.la2eafNXanI> Lines: 27 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit