This was kind of implied in not wanting to change any other font.
But I have to hand it to you Marc Anthony - your method is far faster. I tried it on a lot of different fonts using a swap list. My method 68 seconds, your method 4 seconds. I still had to add
of application "Adobe Illustrator"
to the end of the line to get it to work in CS5.1 though
set swaplist to {{"Knockout-HTF26-JuniorFlyweight", "Knockout-26JuniorFlywght"}, {"Knockout-HTF27-JuniorBantamwt", "Knockout-27JuniorBantamwt"}, {"Knockout-HTF28-JuniorFeatherwt", "Knockout-28JuniorFeathrwt"}, {"Knockout-HTF29-JuniorLiteweight", "Knockout-29JuniorLtweight"}, {"Knockout-HTF30-JuniorWelterwt", "Knockout-30JuniorWelterwt"}, {"Knockout-HTF31-JuniorMiddlewt", "Knockout-31JuniorMiddlewt"}, {"Knockout-HTF32-JuniorCruiserwt", "Knockout-32JuniorCruisewt"}, {"Knockout-HTF33-JuniorHeviwt", "Knockout-33JuniorHeviwt"}, {"Knockout-HTF34-JuniorSumo", "Knockout-34JuniorSumo"}, {"Knockout-HTF46-Flyweight", "Knockout-46Flyweight"}, {"Knockout-HTF47-Bantamweight", "Knockout-47Bantamweight"}, {"Knockout-HTF48-Featherweight", "Knockout-48Featherweight"}, {"Knockout-HTF49-Liteweight", "Knockout-49Liteweight"}, {"Knockout-HTF50-Welterweight", "Knockout-50Welterweight"}, {"Knockout-HTF51-Middleweight", "Knockout-51Middleweight"}, {"Knockout-HTF52-Cruiserweight", "Knockout-52Cruiserweight"}, {"Knockout-HTF53-Heviweight", "Knockout-53Heviweight"}, {"Knockout-HTF54-Sumo", "Knockout-54Sumo"}, {"Knockout-HTF66-FullFlyweight", "Knockout-66FullFlyweight"}, {"Knockout-HTF67-FullBantamwt", "Knockout-67FullBantamwt"}, {"Knockout-HTF68-FullFeatherwt", "Knockout-68FullFeatherwt"}, {"Knockout-HTF69-FullLiteweight", "Knockout-69FullLiteweight"}, {"Knockout-HTF70-FullWelterwt", "Knockout-70FullWelterwt"}, {"Knockout-HTF71-FullMiddlewt", "Knockout-71FullMiddlewt"}, {"Knockout-HTF72-FullCruiserwt", "Knockout-72FullCruiserwt"}, {"Knockout-HTF73-FullHeviweight", "Knockout-73FullHeviweight"}, {"Knockout-HTF74-FullSumo", "Knockout-74FullSumo"}, {"Knockout-HTF90-UltmtWelterwt", "Knockout-90UltmtWelterwt"}, {"Knockout-HTF91-UltmtMiddlewt", "Knockout-91UltmtMiddlewt"}, {"Knockout-HTF92-UltmtCruiserwt", "Knockout-92UltmtCruiserwt"}, {"Knockout-HTF93-UltmtHeviwt", "Knockout-93UltmtHeviwt"}, {"Knockout-HTF94-UltmtSumo", "Knockout-94UltmtSumo"}}
tell application "Adobe Illustrator"
activate
tell document 1
-- gets rid of empty text frames
delete (every text frame whose contents is "")
repeat with i from 1 to count of swaplist
try
-- old method is first - it's much slower than new method below
--set text font of (every character of every story whose properties contains {text font:text font (item 1 of item i of swaplist)}) to text font (item 2 of item i of swaplist) of application "Adobe Illustrator"
set (stories's characters whose its text font's name is (item 1 of item i of swaplist))'s text font to text font (item 2 of item i of swaplist) of application "Adobe Illustrator"
end try
end repeat
end tell
end tell
Browser: Safari 534.57.2
Operating System: Mac OS X (10.7)