Reply To: CS4 Library Global Changes

#51319
Rocky
Member

Uwe,

Did some tinkering of my own on your script. After answering your questions I realized there might be a problem with more than one paragraph style in the individual assets. Based on that, I thought maybe changing your line 22 to this would work:

            d.textFrames.item(0).paragraphs[m].appliedFont = app.fonts.item(“Times LT Std”);

I am not really interested in preserving existing paragraph styles, or creating new ones for that matter, this is an old library that has been mangled for years but wanted to migrate the fonts to OpenType.
After making the change (and of course inserting my library name into line 11: BINGO IT WORKED PERFECTLY!
Excellent!!! Did not have to even indicate fontStyle = “Bold”; in the code and all converted well.
Thank you again! Happy New Year!

This article was last modified on January 1, 2010

Comments (0)

Loading comments...