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!

]]>

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

  1. Anonymous says:

    < ![CDATA[

    not sure what “load style” is found to test what it does

    ]]>

  2. Anonymous says:

    < ![CDATA[

    Bogdan Tautu in the settings of a folder there is the section “Manage” at the bottom with it’s first option to be “Load a style” where you can select a saved set of options for it to be applied.



    I want to set such a style with a script, but didn’t find any option to do so.

    ]]>

  3. Anonymous says:

    < ![CDATA[

    You can do what “load a style” does using the PropertySet API class


    Call “getProperties” on the folder container (see: http://www.lightninglauncher.com/scripting/reference/api-beta/reference/net/pierrox/lightning_launcher/script/api/Container.html#getProperties%28%29 ) then call edit() to get the Properties editor

    ]]>

  4. Anonymous says:

    < ![CDATA[

    Bogdan Tautu Thanks I’ve seen this possibility in a post of TrianguloY​, but I don’t want to set a predefined set of properties, rather than give the user the possibility to save a style with a predefined name which is applied to other folders as well.



    Maybe I’ve to think about a less elegant solution to provide this, like working with tags and a separate script to save a “style”.

    ]]>

Leave a Reply

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