Changing fonts (and faces) in InDesign paragraph & character styles
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