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

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


  • Subject: Re: Changing fonts (and faces) in InDesign paragraph & character styles
  • From: JF <email@hidden>
  • Date: Wed, 01 May 2013 15:10:27 +0100

Hey, I altered a script which works:

tell application "Adobe InDesign CS6"
	tell character style "Figures Text Medium" of active document
		set applied font to "Helvetica Neue LT Std"
		set font style to "65 Medium"
	end tell
end tell

How do I loop this from character style to character style? Also some font styles will be different, for example "45 Light" instead of "65 Medium" so I need to have an "if" statement? And some styles have different fonts altogether and do not need changing. The ones I need to change have the "Helvetica Neue LT" font.

Again, thanks for any help.

Wed, 1 May 2013 14:42:57 +0100, JF  wrote:

>I need to change fonts in over 100 character and paragraph styles over a
>lot of documents, all with different styles and variations. This is very
>tedious to do manually, as anyone who knows about InDesign's style
>interface can tell you.
>
>I have managed to get a list of the properties of all the character
>styles using this script, but the result is enormous and mostly
>irrelevant to me. All I want is the style name, applied font, and font
>style, all preferably on the same line. This easy script works, but has
>the massive list of properties, some of which I never imagined a
>character style would have:
>
>tell application "Adobe InDesign CS6"
>	get properties of all character styles of active document
>end tell
>
>but this does not work:
>
>tell application "Adobe InDesign CS6"
>	get properties {name, applied font, font style} of all character styles
>of active document
>end tell
>
>I have tried:
>get applied font of all character styles of active document
>and similar for name and font style and I do get lists, but they are all
>in separate lists. I have also tried variations on "get name and applied
>font and font style of all character styles..." but none compile in
>Script Debugger.
>
>This is the first bit I had in mind to solve my problem. It is possibly
>irrelevant to my goal, but at least I have been able to see the style
>attributes in one page rather than using INDD's style windows one by
>one. I then need to see which styles need to have their fonts changed,
>and tbh I have no idea how to change them, possibly looping from one
>named style to another or one font name/font style? I am also assuming
>that once I have a script for character styles then I can easily adapt
>it for paragraph styles.
>
>Thanks for any help.
>
>
>
>
> _______________________________________________
>Do not post admin requests to the list. They will be ignored.
>AppleScript-Users mailing list      (email@hidden)
>Help/Unsubscribe/Update your Subscription:
>@fmail.co.uk
>Archives: http://lists.apple.com/archives/applescript-users
>
>This email sent to email@hidden




 _______________________________________________
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

  • Prev by Date: Changing fonts (and faces) in InDesign paragraph & character styles
  • Next by Date: Another strange error
  • Previous by thread: Re: Changing fonts (and faces) in InDesign paragraph & character styles
  • Next by thread: Another strange error
  • Index(es):
    • Date
    • Thread