• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Indesign how to find text and change this into a paragraph style
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Indesign how to find text and change this into a paragraph style (From: Gerard Blokdijk <email@hidden>)

  • Prev by Date: Re: Best practices
  • Next by Date: Re: Best practices
  • Previous by thread: Indesign how to find text and change this into a paragraph style
  • Next by thread: Applescript Studio and Snow Leopard?
  • Index(es):
    • Date
    • Thread