Fireworks Automation: Trying to Retrieve the Color of Paragraphs

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

>
currentselection[loopcount].textRuns.textRuns.changedAttrs
Rather, that would have to be:
var text_i =
currentselection[loopcount].textRuns.textRuns.length;
while(text_i--){
currentselection[loopcount].textRuns.textRuns[text_i].changedAttrs.fillColor
}

Similar Messages

  • Trying to change the color of a single cell

    hi, I am trying to change the color of a single cell when mouse moves over it, but couldn't do it. i even tried my own renderer, but it doesn't work. can anybody help ?

    Here is what I am trying to do. I am displaying some data in a java JTable retrieved from a table in database. What is needed is when user moves his mouse over any cell in the third column, the cursor should change to hand cursor and possibly the background color should also change, to indicate the user that this cell is clickable. I have to show some other report when user clicks any cell in column three. The code follows as
    import java.awt.*;
    import java.sql.*;
    import javax.swing.*;
    import java.awt.event.*;
    import javax.sql.rowset.*;
    import javax.swing.table.*;
    public class MouseMotionInTable extends JFrame
    public static void main(String[] args)
      MouseMotionInTable f = new MouseMotionInTable();
      Toolkit tk = Toolkit.getDefaultToolkit();
      Dimension dim = tk.getScreenSize();
      int w = dim.width;
      int h = dim.height;
      f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      f.setBounds((w-600)/2, (h-300)/2, 600, 300);
      f.setVisible(true);
    MouseMotionInTable()
      Connection con = null;
      CachedRowSet crs = null;
      try
       Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
       con = DriverManager.getConnection("jdbc:odbc:FMS", "", "");
       Statement st = con.createStatement();
       String query = "SELECT ItemName, Alias, ItemReOrderQuty, ItemMeasure FROM ItemInfo";
       ResultSet rs = st.executeQuery(query);
       crs = new com.sun.rowset.CachedRowSetImpl();
       crs.populate(rs);
       st.close();
      catch (SQLException e)
       e.printStackTrace();
      catch (ClassNotFoundException e)
       e.printStackTrace();
      finally
       if(con != null)
        try
         con.close();
        catch (SQLException e)
         e.printStackTrace();
      DBTableModel model = new DBTableModel(crs);
      table = new JTable(model);
      JPanel center = new JPanel();
      center.setLayout(new BorderLayout());
      center.add(new JScrollPane(table), BorderLayout.CENTER);
      add(center, BorderLayout.CENTER);
      table.addMouseMotionListener(new MouseMotionAdapter()
       public void mouseMoved(MouseEvent me)
        int col = table.columnAtPoint(new Point(me.getX(), me.getY()));
        int row = table.rowAtPoint(new Point(me.getX(), me.getY()));
        if(col == 2)
         Object val = table.getValueAt(row, col);
         boolean isSelect = table.isCellSelected(row, col);
         boolean focus = table.isCellSelected(row, col);
         TableCellRenderer cellRender = table.getCellRenderer(row, col);
         Component comp = cellRender.getTableCellRendererComponent(table, val, isSelect, focus, row, col);
         comp.setCursor(new Cursor(Cursor.HAND_CURSOR));
         comp.setBackground(Color.yellow);
    private JTable table;
    class DBTableModel extends AbstractTableModel
    ResultSet rs;
    ResultSetMetaData rsMeta;
    DBTableModel(ResultSet rs)
      try
       this.rs = rs;
       rsMeta = rs.getMetaData();
      catch(SQLException e)
       e.printStackTrace();
    public int getColumnCount()
      try
       return rsMeta.getColumnCount();  
      catch(SQLException e)
       e.printStackTrace();
      return -1;
    public String getColumnName(int c)
      try
       return rsMeta.getColumnName(c+1);
      catch(SQLException e)
       e.printStackTrace();
      return "";
    public int getRowCount()
      try
       rs.last();
       return rs.getRow();
      catch(SQLException e)
       e.printStackTrace();
      return -1;
    public Object getValueAt(int r, int c)
      try
       rs.absolute(r+1);
       return rs.getObject(c+1);
      catch(SQLException e)
       e.printStackTrace();
      return "";
    public boolean isCellEditable(int r, int c)
      return false;
    public Class getColumnClass(int c)
      return getValueAt(0,c).getClass();
    }

  • Error while trying to retrieve the task: EventId(complete) does not belong

    Hi Experts,
    I have created a process composer DC in which i have created a process with two human tasks.
    Each tasks is binded with web dynpro Iviews (means followed all the steps neccesary).
    I deploed the DC successfully. now i started the process and got a task in my UWL but on click of the task i got the below error.
    Error while trying to retrieve the task: EventId(complete) does not belong to referenced component interface of ComponentUsage(com.sap.tc.bpem.wdui.appcontainer.containercomp.ContainerComp:com.infosys.mdm.LoadRepositoryComp, createOnDemand=false, childComponent=com.infosys.mdm.LoadRepositoryComp)
    [EXCEPTION]
    java.lang.IllegalArgumentException: EventId(complete) does not belong to referenced component interface of ComponentUsage(com.sap.tc.bpem.wdui.appcontainer.containercomp.ContainerComp:com.infosys.mdm.LoadRepositoryComp, createOnDemand=false, childComponent=com.infosys.mdm.LoadRepositoryComp)
    I have rechecked the event that i have created in the component controller and Interface controller.
    Can you please help me in debunging the error.
    thanks
    Narendra

    Hi,
    sounds like an program error. That is an problem which occurs if one or multiple components try to lock the same galaxy object at the same point in time. Did you configured something special on the given task? e.g deadlines?
    My proposal is to open an Customer Message so that we can have a detailed look onto the system. If this is not possible could you please provide the complete trace file and some more details about the modeled task?
    Best Regards
    Andreas

  • BPM throws: "Error while trying to retrieve the task"

    Hi,
    <br><br>
    When clicking on a task(WD-UI) in UWL, BPM throws an error message:<br>
    Error while trying to retrieve the task<br><br>
    Though, I am able to open up the task when I restart the server ( CE 7.1 EHP1 SP04 patched).
    <br><br>
    Anyone an idea?
    <br><br>
    Regards,
    <br><br>
    Wesley
    <br><br>
    The log file presents the following information (partially):
    <br>
    Caused by: java.lang.IllegalStateException: com.sap.glx.core.kernel.api.TransitionRollbackException: Exception during prepare, rolling back
    at com.sap.bpem.tm.adapter.core.TaskAdapter$TicketSynchronization.beforeCompletion(TaskAdapter.java:581)
    at com.sap.engine.services.ts.jta.impl.SynchronizationWrapper.beforeCompletion(SynchronizationWrapper.java:27)
    at com.sap.engine.services.ts.jta.impl.TransactionImpl.commit(TransactionImpl.java:234)
    ... 86 more
    Caused by: com.sap.glx.core.kernel.api.TransitionRollbackException: Exception during prepare, rolling back
    at com.sap.glx.core.kernel.mmtx.AbstractTransactionBase.rollback(AbstractTransactionBase.java:544)
    at com.sap.glx.core.kernel.mmtx.AbstractTransaction.do_prepare(AbstractTransaction.java:174)
    at com.sap.glx.core.kernel.mmtx.AbstractTransaction.commit(AbstractTransaction.java:77)
    at com.sap.bpem.tm.adapter.core.TaskAdapter$TicketSynchronization.beforeCompletion(TaskAdapter.java:579)
    ... 88 more
    Caused by: com.sap.glx.core.kernel.trigger.TriggerLockingException: Cannot acquire lock for update <Context_0_TaskAttributes_ac33d162fa908f8198b3c740708bb6c5{919e4f4b-1581-11df-c72f-02004c4f4f50}(Instance_0_TaskHelloWorld2_ac33d162fa908f8198b3c740708bb6c5{919e4f45-1581-11df-b4f9-02004c4f4f50}(?),Scope_13_TaskHelloWorld2_ac33d162fa908f8198b3c740708bb6c5{919e4f4a-1581-11df-94e6-02004c4f4f50}(?),3,true)|Context_0_TaskAttributes_ac33d162fa908f8198b3c740708bb6c5(Instance_0_TaskHelloWorld2_ac33d162fa908f8198b3c740708bb6c5{919e4f45-1581-11df-b4f9-02004c4f4f50}(Instance_0_bpmboundary_new_24449a1f1a041ff7cd7deb8d764c6405{0d4c2925-157b-11df-b84e-02004c4f4f50}(?),null,Token_0_bpmboundary_new_24449a1f1a041ff7cd7deb8d764c6405{917829a3-1581-11df-b6e0-02004c4f4f50}(?),false),Scope_13_TaskHelloWorld2_ac33d162fa908f8198b3c740708bb6c5{919e4f4a-1581-11df-94e6-02004c4f4f50}(Instance_0_TaskHelloWorld2_ac33d162fa908f8198b3c740708bb6c5{919e4f45-1581-11df-b4f9-02004c4f4f50}(?)),4,*true)>
    at com.sap.glx.core.kernel.trigger.node.LockingTreeJoinNode.process(LockingTreeJoinNode.java:638)
    at com.sap.glx.core.kernel.trigger.core.BFSController.update(BFSController.java:173)
    at com.sap.glx.core.kernel.trigger.impl.TriggerNetworkManagerImpl$SequentialController.update(TriggerNetworkManagerImpl.java:550)
    at com.sap.glx.core.kernel.mmtx.AbstractTransaction.do_trigger(AbstractTransaction.java:199)
    at com.sap.glx.core.kernel.mmtx.AbstractTransaction.do_prepare(AbstractTransaction.java:170)
    ... 90 more
    Caused by: com.sap.glx.core.kernel.trigger.TriggerLockingException: Cannot acquire read row lock for after image (key = Instance_0_TaskHelloWorld2_ac33d162fa908f8198b3c740708bb6c5{919e4f45-1581-11df-b4f9-02004c4f4f50}(Instance_0_bpmboundary_new_24449a1f1a041ff7cd7deb8d764c6405{0d4c2925-157b-11df-b84e-02004c4f4f50}(?),null,Token_0_bpmboundary_new_24449a1f1a041ff7cd7deb8d764c6405{917829a3-1581-11df-b6e0-02004c4f4f50}(?),false), name = JOIN_CompletionDeadlineWithRealDelayConditionalSequenceConnector_context_join_0_69)
    at com.sap.glx.core.kernel.trigger.node.LockingTreeJoinNode.lockAfterRow(LockingTreeJoinNode.java:308)
    at com.sap.glx.core.kernel.trigger.node.LockingTreeJoinNode.process(LockingTreeJoinNode.java:636)
    ... 94 more

    Hi,
    sounds like an program error. That is an problem which occurs if one or multiple components try to lock the same galaxy object at the same point in time. Did you configured something special on the given task? e.g deadlines?
    My proposal is to open an Customer Message so that we can have a detailed look onto the system. If this is not possible could you please provide the complete trace file and some more details about the modeled task?
    Best Regards
    Andreas

  • Hello. I am trying to change the colors on my ical. I have been able to select a calendar group, click "get info" and then "other" in the color options and which point a a lot of color options are available. HOWEVER, I can't seem to select the color.

    Hello. I am trying to change the colors on my ical. I have been able to select a calendar group, click "get info" and then "other" in the color options and which point a a lot of color options are available. HOWEVER, I can't seem to select the color. I click on a new color and press enter and nothing happens...not sure what I am doing wrong.

    What do you currently see?
    Can you attach a screenshot?
    *http://en.wikipedia.org/wiki/Screenshot
    *https://support.mozilla.org/kb/how-do-i-create-screenshot-my-problem
    Use a compressed image type like PNG or JPG to save the screenshot.
    Do you have the menu bar?
    *Press the F10 key or tap the Alt key to bring up the hidden Menu bar.
    Do you have any toolbars visible at all?
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Make sure that you do not run Firefox in full screen mode (press F11 or Fn + F11 to toggle; Mac: Command+Shift+F).
    *https://support.mozilla.org/kb/how-to-use-full-screen
    You can check for problems caused by a corrupted localstore.rdf file.
    *http://kb.mozillazine.org/Corrupt_localstore.rdf

  • I am trying to change the color of a background layer and it will not accept the color I want

    I am trying to change the color of a background layer and it will not accept the color I want

    If you want to get help you may have to provide a lot more details about what you are doing (which tools or commands do you use, what exactly happens when it fails, …)?

  • SQL Server Import Export Wizard fails while trying to retrieve the data from FastObjects Database

    When trying to import data from FastObjects database to SQL Server 2008 R2 using import/ export wizard we get the following error message :
    "Column information for the source and the destination data could not be retrieved, or the data types of source columns were not mapped correctly to those available on the destination provider."
    Clicked on View button, the source data is retrieved correctly.
    Clicked on Edit Mapping button, the Import Export Wizard failed with the below error message:
    ===================================
    Column information for the source and destination data could not be retrieved.
    "Test" -> [dbo].[Test]:
    - Cannot find column -1.
    (SQL Server Import and Export Wizard)
    ===================================
    Cannot find column -1. (System.Data) 
    at System.Data.DataColumnCollection.get_Item(Int32 index) at System.Data.DataRow.get_Item(Int32 columnIndex) at Microsoft.DataTransformationServices.Controls.ProviderInfos.MetadataLoader.LoadColumnsFromTable(IDbConnection myConnection, String[] strRestrictions)
    at Microsoft.SqlServer.Dts.DtsWizard.OLEDBHelpers.LoadColumnsFromTable(MetadataLoader metadataLoader, IDbConnection myConnection, String[] strRestrictions, DataSourceInfo dsi)at Microsoft.SqlServer.Dts.DtsWizard.TransformInfo.PopulateDbSourceColumnInfoFromDB(IDbConnection
    mySourceConnection) at Microsoft.SqlServer.Dts.DtsWizard.TransformInfo.PopulateDbSourceColumnInfo(IDbConnection mySourceConnection, ColumnInfoCollection& sourceColInfos)

    Hi Chennie,
    Thank you for the post.
    Does the issue persists after you use the "Write a query to specify the data to transfer" option instead of “Copy data from one or more tables or views” option? If so, the issue may occur due to incorrect data type matching between the FastObjects database
    data types and SSIS data types. In this condition, I don’t think it is necessary to upgrade the SQL Server version. Since you can open the Column Mappings dialog box, please try to modify the data type mapping manually.
    In addition, the issue seems to be the same as the issue described in the following blog:
    http://blogs.msdn.com/b/dataaccesstechnologies/archive/2010/09/09/sql-server-import-export-wizard-fails-while-trying-to-retrieve-the-data-from-pervasive-database.aspx 
    Regards,
    Mike Yin
    TechNet Community Support

  • Trying to retrieve the serial nimber to install software. It says I used incorrect redemption code. I have checked and rechecked. What should I do?

    Trying to retrieve the serial number required to install software for Elements 12. Answer says wrong redemption code. I have checked & rechecked. What shall I do?

    It's pretty convoluted now, but try this page and click where it says "Still need help?"
    Contact Customer Care

  • Trying to change the color of the title?

    Through the Titles feature, I've created a title. It has come out white. Now I want to change the color.
    I went to Help and it says to "Select the title in the Project Browser, and then click Show Fonts in the viewer. The iMovie Font Panel opens."
    I selected the title, but then I could not find anything that says "Show Fonts." Can someone help? Thanks.

    James Snedeker wrote:
    .. how do I create my own titles with which I can change the colors/fonts/etc?
    if you don't need the title over video, use any 'paint'.app to create your own title design (btw: Keynote offers nice templates...), import 'chart' as a still.
    if you need the title over video, follow advice and get some inspiration on my site:
    http://sites.google.com/site/karstenschluter/imovie09tricks
    btw: if the DevTools are installed on your Mac, and you're familiar with the tool QuartzComposer, you can change font and color in all 'effected' titles.. but tricky

  • HT201272 I lost my itunes library, now i tried to retrieve the music i purchased from apple and i am only getting part of it!

    Cant retrieve the music i purchased from apple videos etc,
    I called cust service she want me to pay 49 us dollars for a tech support I told her i dont need tech support i do need my files that i purchased available for download, she insisted I hang up.
    I need help from you guys, I am student full time so no extra cash to pay for apple bills.
    regards

    Sue,
    I recommend an external drive to maintain your music.  All your purchases are held in iCloud...so redownloading should be easy.  Also, Home sharing is a great way to transfer to a new computer, but in the case of hard drive failure your options are limited.  Home sharing is specifically for transferring to another pc.  Good luck!

  • I am trying to change the color background in the Sports Theme of Imovie 11

    I am using the Pre-Set Theme (Sports) and want to change the theme color from blue to green.  Any ideas of how to do this?

    No unfortunately those themes are baked right into iMovie and not to be altered unfortunately. In a manner of speaking, What you see is ALL that you get. Everybody gets the same color no matter what.

  • Trying to retrieve the editValue of a list box selection with multiple selections

    I have a requirement to display the text and the value of a multiple choice list box but as soon as there are multiple selections the value displayed is the rawValue.
    My code is something like this:
    verifSubTaskDescID.addItem(this.editValue);
    verifSubTaskDesc.addItem(this.rawValue);
    When "this" which is a list box with ["a","first"],["b","second"] is set to a or b it works perfectly, displaying "a" in the ID and "first" in the Desc as follows:
    a          first
    OR
    b          second
    but when I select both this list looks like this:
    first          first
    second     second
    Any ideas on how to preserve the letters without making the code too complex or hard to maintain??
    Thanks!!!

    Hi,
    you can use a for loop to get all selected values from a choice list.
    This could look like this.
    This sample script goes to the exie event of the choice list.
    It refers to the dataNode which holds the multiple values.
    The for loop the then extracts the selected values and their associated display items.
    var r = ""
    for i = 0 upto $.dataNode.nodes.length - 1 do
              r = Concat(r, $.dataNode.nodes.item(i).value, " ", $.getDisplayItem(i + 1) )
    endfor
    Textfield1 = r

  • Can not control the color in JOGL

    I am a beginner to use JOGL.
    I find that I can not control the color, both background and foreground. The background is always Black, and foreground is always Red.
    I use canvas.setBackground(Color),
    gl.glColor3*(), trying to change the color. But it does not work.
    What is the problem?
    Thanks.
    Toby

    A big help for learning JOGL is reading the Red Book from OpenGL, which can be downloaded in pdf. Since JOGL is almost a direct wrapper, the function calls are identical.
    To set the background color, you need to add a GLEventListener to the GLCanvas that you're using. To set the background color, in your init() method for GLEventListener do:
    public void init(GLAutoDrawable glad) {
    GL gl=glad.getGL();
    gl.glClearColor(r,g,b);
    or something similar, I'm not on my normal computer so this was all from memory. Check the JOGL API for the exact method name for glClearColor. To change the foreground color, there are a bunch of various methods that are all similar to glColor3f(float r,float g,float b).
    Calling this on the GL object in the display() method will set the foreground color and everything drawn that isn't using lighting will use this color.

  • Change the color of the outer line of a shape

    Hello I'm trying to create a rectangle with a red border and no inside fill. It's only to highlight some text of a bank form.
    I know i have to right click the layer and choose blending options and stroke. But I've tried to change the color so many times and no matter what I do, the outer line remains gray and with rounded corners.
    I want the corners of the rectangle to be squared, not rounded but I'm having a hard time changing this.
    Please help
    I'm using Photoshop CS3
    thank you
    Could anyone please show a picture of where to change the color of the outer line? I've tried everything.

    Hi,
    With Ps CS3, you'll probably want to define a Layer Style for a Stroke and then use that with the Square Shape Layers.
    This is a Stroke of 4 px, 'Centered' (so a very slight corner rounding on the outside edge. 'Inside' will give you square corners for both inside and outside edges). To change the color of the stroke, go to Layer> Layer Style> Stroke and change the color by clicking on the color bar.
    regards,
    steve 

  • HT5624 I have an expired email account linked to icloud and don't know the password and can't reset the password due to not receiving emails anymore with the email account. Any ideas on how to retrieve the songs and data?

    I have an icloud account linked to an email address that is no longer in service.  I do not have the password for the account and am trying to retrieve the songs and data from the cloud to use on new apple device.  Any way to get a new password, able to open the expired account, without having that email account active?

    Hi there clarethasimmons,
    You may find the information in the article below helpful.
    Apple ID: Changing your Apple ID
    http://support.apple.com/kb/ht5621
    -Griff W.

Maybe you are looking for

  • Patching 11.5.9

    Helo All, I am working on a 11.5.9 system and have to apply a patch soon. What is the best place to look into manual/documentation on patching. Also if I can have a simple step-by-step big picture of patching before I read any documentation, it will

  • Purchasing Songs - Not Showing Up In Tabs

    I just purchased 2 songs and they won't show up in my "music" tab..Just the "purchased" and "Recently Added" tabs... Its really frustrating lol any idea how i can fix this ?

  • EPMA dimension alias

    Hello, I am working on EPM 11.1.2.3, and notice that I encountered an issue with EPMA Planning application. When I create the dimension (for example, Product dimension), in the system property, there is a dimension alias field. However, when I put an

  • Alltel upgrade to ver 4.5 failed

    I am trying to upgrade to v4.5 from v4.3 so i can get docs to go, recieved an email from bb saying upgrade was available... alltel previously only supported ver 4.3 now when i go to upgrade it says that i am running the most current version ! and i h

  • JOptionPane Problem, pls reply

    Hi, I am having a problem with JOptionPane that I have noticed other people have had but I could not find a solution. Here it is: When I use a Showconfirmdialog. It works fine in the develop. environment buts has a bug when I view it in a browser. Ab