• 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
Changing fonts (and faces) in InDesign paragraph & character styles
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changing fonts (and faces) in InDesign paragraph & character styles


  • Subject: Changing fonts (and faces) in InDesign paragraph & character styles
  • From: Chris Paveglio <email@hidden>
  • Date: Wed, 01 May 2013 19:25:42 +0000
  • Thread-topic: Changing fonts (and faces) in InDesign paragraph & character styles

Hi JF,
It appears that you are probably pretty new to Applescript or programming.
You are going to have to work on some basics first.

You can loop through a list of objects like some styles like:

tell application "Adobe InDesign CS5"
    tell document 1
        set docCharStyles to every character style

        repeat with aStyle in docCharStyles
            tell aStyle
                --<do some actions here>
            end tell
        end repeat
    end tell
end tell

As far as changing something from one thing to another, you might have to
use a lot of lists or IF/ELSE statements to switch them. If you have a lot
of fonts that change from one style to another, it will be a big list of
IFs. There may be no way around having some kind of giant list of If this
font style then some other font style

If font style is "65 Medium" then
    set font style to "75 Medium"
Else if font style is "85 Black" then
    set font style to "86 Black Italic"
Else if font style is "77 Bold Condensed" then
    set font..... Etc etc

Or

If (font style is "65 Medium") and (applied font is "Helvetica") then
--do things

--
Chris


 _______________________________________________
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

  • Follow-Ups:
    • Re: Changing fonts (and faces) in InDesign paragraph & character styles
      • From: JF <email@hidden>
  • Prev by Date: Script Bundle Tool
  • Next by Date: Re: Changing fonts (and faces) in InDesign paragraph & character styles
  • Previous by thread: Changing fonts (and faces) in InDesign paragraph & character styles
  • Next by thread: Re: Changing fonts (and faces) in InDesign paragraph & character styles
  • Index(es):
    • Date
    • Thread