2 Replies Latest reply on Dec 1, 2006 1:51 PM by abeall

    Fireworks Automation: Trying to Retrieve the Color of Paragraphs

    billgregg
      I'm trying to automate some website design tasks in Fireworks, and as part of that effort I need to read the color of selected text. If a text frame is selected, and there are multiple paragraphs in the frame, I need to be able to loop through the paragraphs and get the color of each one. I can retrieve the color of the first paragraph with this code:

      currentselection=fw.selection
      [while loop starts]
      currentselection[loopcount].textRuns.initialAttrs.fillColor

      But I can't figure out how to get the color of the text in the following paragraphs. The documentation is very thin in this area. Anyone know how to accomplish this?

      Thanks,

      Bill Gregg