Gerald Maresch

now browsing by tag

 
 

Is there any way to set a new style for a folder with a script like via settings (“load style”)?

Is there any way to set a new style for a folder with a script like via settings (“load style”)?

Haven’t found anything in the API that looked like that for me..

Thanks in advance!

]]>

Hi!

Hi!

I’m a long-term user of LL and LLX and I’m experimenting with Scripts lately since we had some JavaScript at the university.

But now I’m stuck at a (at least that’s my suspicion) type cast problem.

If I run this script from the items menu I get the following error:

var desktop = LL.getCurrentDesktop();

var it=LL.getEvent().getItem();

var folder = desktop.getItemByName(“Internet”);

desktop.moveItem(it, folder);

At line 4: Can’t find method net.pierrox.lightning_launcher.script.api.Container.moveItem(net.pierrox.lightning_launcher.script.api.Shortcut,net.pierrox.lightning_launcher.script.api.Folder).

MoveItem is defined by (Item, Container) instead of (Shortcut, Folder), but they are subclasses.

Or is there another problem?

Edit:

Second question:

Is there a possibility to duplicate a shortcut and copy that in a second folder?

Thanks!