Re: Indesign how to find text and change this into a paragraph style
Re: Indesign how to find text and change this into a paragraph style
- Subject: Re: Indesign how to find text and change this into a paragraph style
- From: Stan Cleveland <email@hidden>
- Date: Thu, 17 Feb 2011 13:53:41 -0800
On Feb 17, 2011, at 12:21 PM, Gerard Blokdijk wrote: I'm having a hard time figuring out howe to find certain lines (like "Chapter 1") and then change "Chapter 1" 's paragraph style. Any help would be much appreciated.
So far I have this to find text, but I can't figure out how to apply a character style to it:
tell application "Adobe InDesign CS4"set find text preferences to nothing set change text preferences to nothing set find what of find text preferences to "Chapter 1" set change to of change text preferences to "Chapter 1" ** How to apply a paragraph style here ?** set myFoundItems to change text end tell
Hi Gerard,
This should work:
tell application "Adobe InDesign CS4" set change to of change text preferences to "Chapter 1" -- how to apply a paragraph style set applied paragraph style of change text preferences to "My Para Style" -- or set both in one command set properties of change text preferences to {change to:"Chapter 1", applied paragraph style:"My Para Style"} set myFoundItems to change text end tell
HTH, Stan C.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden