🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #820

AppleScripting an InDesign Paragraph Style

#820
From: Agustin_Moran
Date: Wed, 04 Mar 2009 20:37
21 lines
1737 bytes
There may be a better way to do this, but the workflow was created before being handed over to me.
Basically, there is an existing AppleScript to paginate a product in InDesign, but the Paragraph Style Sheet line in AppleScript is very basic & uses the wrong font!
There is an example:

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", point size:6, font:"Arial Narrow"}
end try

What this 'firstLineStyle' should relly look like is this (based on the InDesign info):
FirstLine
[Basic Paragraph] + next: [Same style] + BentonGothicCond + Bold + size: 8 pt + leading: 9.5pt + tracking: -20 + pair kern method: Optical + tabs: count = 1, [position: 140 pt, alignment: right]

I get scripting errors when I have tried (still learning AppleScript), things like the 'pair kern method' & 'tab counts' are not well liked.
Can someone tell me what I need to do to get this to work?

Thanks for any help.
Technical Details
Message-ID: <59b81da5.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!newshub.sdsu.edu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,80e8b4130ce9b2e9,start
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!news3.google.com!news2.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: AppleScripting an InDesign Paragraph Style
Message-ID: <59b81da5.-1@webcrossing.la2eafNXanI>
Date: Wed, 4 Mar 2009 12:37:15 -0800
Lines: 29
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit