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();
]]>
< ![CDATA[
You run commit without modifying anything.
]]>
< ![CDATA[
You have to commit the editor in which you did the changes.
]]>
< ![CDATA[
var editor=LL.getCurrentDesktop().getItemByName(‘background’).getProperties().edit();
editor.getBox(“i.box”).setColor(“c”,”nsf”,0xFFE91E63);
editor.commit();
( untested )
]]>
< ![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();
]]>
< ![CDATA[
It works for me
]]>
< ![CDATA[
Lukas Morawietz works for me now … made a stupid typo. thanks for your help!
]]>