Hi Bob, Here is basically how it is done:
#target framemaker var doc = app.ActiveDoc; // Get the required objects. var pgfFmt = doc.GetNamedPgfFmt ("Heading1"); var color = doc.GetNamedColor ("Red"); // Apply the color object to the paragraph format. pgfFmt.Color = color; alert (pgfFmt.Color.Name);
One thing to be aware of: this only changes the paragraph format's color, but it does not do the equivalent of an Update All in the paragraph designer. You still have to go through and apply the updated paragraph format (or color) to any paragraphs tagged with this format.