TrianguloY​ your calendar icon script is not working on my app drawer

TrianguloY​ your calendar icon script is not working on my app drawer

Working fine on other shortcuts (other desktop)

Pierre Hébert​ so I have an issue with getElementById on my script

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

23 Commentsto TrianguloY​ your calendar icon script is not working on my app drawer

  1. Anonymous says:

    < ![CDATA[

    Bruno-Isa LAMOUR-ARNOULD​​ How is that script run? In the resumed event of the app drawer? Load event? Other?


    Pierre Hébert​​ the script runs LL.getEvent().getContainer().getItemByLabel(


    so wherever that script is run, the event is not returning the container.

    ]]>

  2. Anonymous says:

    < ![CDATA[

    Yes I was assuming this too. Now the key is to know when the script is run…

    ]]>

  3. Anonymous says:

    < ![CDATA[

    Maybe resumed event as I said in one previous post?

    ]]>

  4. Anonymous says:

    < ![CDATA[

    The strange thing is that Bruno’s modified script should work, as it is getting the items directly from their id :/

    ]]>

  5. Anonymous says:

    < ![CDATA[

    let’s wait for Bruno-Isa LAMOUR-ARNOULD answer on the full context. It’s difficult to make assumption without knowing exactly how things are set up.

    ]]>

  6. Anonymous says:

    < ![CDATA[

    At least it works out of the box for me, either from a desktop or in the app drawer, either from the resume event or the item menu (tried 4 combinations), script imported directly from the wiki.

    ]]>

  7. Anonymous says:

    < ![CDATA[

    Bruno-Isa LAMOUR-ARNOULD​​, if I’m correct, you’ve been using that icon pack for a very long time, I’m lucky to go a couple days without changing at least icons lol I’m jus hyper i can’t leave anything alone. My parents were always having to replace any electronics in the house because I would take a screw driver to it lmao 

    ]]>

  8. Anonymous says:

    < ![CDATA[

    Pierre Hébert the error is when running the script from the item


    My normal script is on Resumed event


    Do you want my template ?

    ]]>

  9. Anonymous says:

    < ![CDATA[

    Use the resume event of the container (the app drawer), not the item. Or use directly LL.getEvent().getItem().

    ]]>

  10. Anonymous says:

    < ![CDATA[

    Pierre Hébert ok so it explains the error on appdrawer


    But why my getElementById no more working ? 😕

    ]]>

  11. Anonymous says:

    < ![CDATA[

    getItemById() does not work because it is called on a null object (the container for the event). The container is null when using the resume event of an item because it is not set in this context, and it is not set because there is no pertinent data here. If the container of the item need to be retrieved, the Item.getParent() can be used, duplicating the same data in LL.getEvent().getContainer() doesn’t bring any valuable information.

    ]]>

  12. Anonymous says:

    < ![CDATA[

    I’ll keep that in mind for future scripts 🙂

    ]]>

  13. Anonymous says:

    < ![CDATA[

    Pierre Hébert it was working on a previous version

    ]]>

  14. Anonymous says:

    < ![CDATA[

    Bruno-Isa LAMOUR-ARNOULD if you check the instructions I gave in the script, it says to set it in the resumed event of the container.


    I’m now not exactly sure if it worked before or not

    ]]>

  15. Anonymous says:

    < ![CDATA[

    TrianguloY​ it was working : last succesful run was on 21st May. My Agenda icons were changed last time on 21 and were fine on my GNex where I didn’t install the llx update. Unfortunately I’ve updated this week

    ]]>

  16. Anonymous says:

    < ![CDATA[

    Because it was working doesn’t mean it was right 😉 But if you follow TrianguloY instructions it will work again. It works for me.

    ]]>

  17. Anonymous says:

    < ![CDATA[

    Pierre Hébert yes sure.


    I have 3 agenda shortcuts : 1 in appdrawer, 1 in a folder and 1 in a desktop. Must I set 3 times the same script ? In all resumed

    ]]>

  18. Anonymous says:

    < ![CDATA[

    If they all have the same label and icon, yes

    ]]>

  19. Anonymous says:

    < ![CDATA[

    TrianguloY yes. Thank you for your help

    ]]>

  20. Anonymous says:

    < ![CDATA[

    TrianguloY 1 instance was working fine.


    Sure because of that :


    /only when change, or run from item


    if(now.toString()==LL.getScriptTag()&&LL.getEvent().getSource()!=”MENU_ITEM”)return;


    LL.setScriptTag(now);



    So i’m pretty sure I need 3 scripts.


    Just duplicating seems fine : could you confirm about LL. setScriptTag ? (trying it now)

    ]]>

  21. Anonymous says:

    < ![CDATA[

    TrianguloY​ commented the if


    Fine now even the script is probably ran for nothing after the 3 update are done.


    I prefer 1 script only for the same thing


    Thank you for help and Pierre Hébert​​ for explanation and your time and good work

    ]]>

  22. Anonymous says:

    < ![CDATA[

    Hmm, you are right. With that code it will only run for the first item, not the others.


    Commenting it is ok, the item is refreshed every time you open the container, but shouldn’t be a big issue.

    ]]>

  23. Anonymous says:

    < ![CDATA[

    TrianguloY yes I can survive like that 😊

    ]]>

Leave a Reply

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