Help request with scripting to change the background color of an item (named background).

Help request with scripting to change the background color of an item (named background). When I run this nothing happens. What am I doing wrong?

LL.getCurrentDesktop().getItemByName(‘background’).getProperties().edit().getBox(“i.box”).setColor(“c”,”nsf”,0xFFE91E63);

LL.getCurrentDesktop().getItemByName(‘background’).getProperties().edit().commit();

]]>
« (Previous Post)
(Next Post) »

6 Commentsto Help request with scripting to change the background color of an item (named background).

  1. Anonymous says:

    < ![CDATA[

    You run commit without modifying anything.

    ]]>

  2. Anonymous says:

    < ![CDATA[

    You have to commit the editor in which you did the changes.

    ]]>

  3. Anonymous says:

    < ![CDATA[

    var editor=LL.getCurrentDesktop().getItemByName(‘background’).getProperties().edit();


    editor.getBox(“i.box”).setColor(“c”,”nsf”,0xFFE91E63);


    editor.commit();


    ( untested )

    ]]>

  4. Anonymous says:

    < ![CDATA[

    Thanks Lukas Morawietz I tried your version but nothing changes either. Also tried the following but I get a error: Cannot call method “commit” of undefined



    LL.getCurrentDesktop().getItemByName(‘background’).getProperties().edit().getBox(“i.box”).setColor(“c”,”nsf”,0xFFE91E63).commit();

    ]]>

  5. Anonymous says:

    < ![CDATA[

    It works for me

    ]]>

  6. Anonymous says:

    < ![CDATA[

    Lukas Morawietz works for me now … made a stupid typo. thanks for your help!

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *