It must be simple but I can’t seem to get the folder label in a script.
It must be simple but I can’t seem to get the folder label in a script.
I can send the Id to Zooper no problem but really want to send the label.
]]>« We can create nearly everything by script and I understand that Widgets are not possible, but what about dektops? (Previous Post)
(Next Post) Dear LLx-community! »
< ![CDATA[
What about your_folder.getLabel() ? In theory it should be just as simple as replacing the id with this value.
]]>
< ![CDATA[
If you are taking the container, remember to call .getOpener() to get the folder item, then use .getLabel() in the item
]]>
< ![CDATA[
TrianguloY Thanks that was it, now working smoothly. Was also wondering how to retrieve labels of all open folders – presume getOpenFolders().GetAt() but not sure how to get to label?
]]>
< ![CDATA[
Tony Merrell-Jones the getOpenFolders return the id of the folder item.
[Not tested]
var list=LL.getOpenFolders();
for(var t=0;t
var label=LL.getItemById(list.getAt(t)).getLabel();
//do what you want with ‘label’
}
Remember to visit http://www.pierrox.net/android/applications/lightning_launcher/script/reference/packages.html to see all the functions
]]>