Formatting the next paragraph
i thankful adobe has made indesign thoroughly scriptable. nothing better speed , accuracy scripting solution! , i’m grateful great discussion forum; can find answer issue here. unfortunately haven’t found answer problem (i’m not looking in right places.) out there can me.
i working on indesign cs3 document , using applescript. need apply paragraph style 366 paragraphs. document structured way:
date paragraph (which has applied paragraph style called “date”)
title paragraph (to apply paragraph style called “title”)
body paragraphs
how can use applescript apply paragraph style “title” title paragraphs? commonality have that, in every instance, follow date paragraph.
thanks in advance!
hi,
just "whose" ;-)
won't work styles in groups ...
set tosearch "date" set toset "title" tell application "adobe indesign cs3" tell active document set mystories every story repeat 1 count of mystories set mystory item of mystories try set applied paragraph style of (first paragraph of mystory (index greater (index of first paragraph of mystory (name of applied paragraph style tosearch)))) toset end try end repeat end tell end tell
More discussions in InDesign Scripting
adobe
Comments
Post a Comment