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.

]]>

4 Commentsto It must be simple but I can’t seem to get the folder label in a script.

  1. Anonymous says:

    < ![CDATA[

    What about your_folder.getLabel() ? In theory it should be just as simple as replacing the id with this value.

    ]]>

  2. Anonymous says:

    < ![CDATA[

    If you are taking the container, remember to call .getOpener() to get the folder item, then use .getLabel() in the item

    ]]>

  3. Anonymous says:

    < ![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?

    ]]>

  4. Anonymous says:

    < ![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

    ]]>

Leave a Reply

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