🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.scripting.indesign
2 messages
2 total messages Started by Agustin_Moran Wed, 04 Mar 2009 20:37
AppleScripting an InDesign Paragraph Style
#820
Author: 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.
Re: AppleScripting an InDesign Paragraph Style
#822
Author: Shane_Stanley
Date: Wed, 04 Mar 2009 22:17
14 lines
1713 bytes
Your first potential problem is that you're making the styles in the
application, not in a document. are you sure you want to do that?

The best way to find out what you want is to ask for the properties you
want. So:

 properties of paragraph style "FirstLine"

Add "of document 1" if that's what you mean. Copy the result, and just
delete any that you don't want.

-- 
Shane Stanley <sstanley@myriad-com.com.au>
AppleScript Pro Sessions <http://scriptingmatters.com/aspro>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads