Question to Pierre Hébert​:

Question to Pierre Hébert​:

There is an extra flag to scripts ‘FLAG_DISABLED’ that is set when clicking the ‘disable’ button in an alert made with that script (mainly when an error occurs) and is cleared when you open that script in the editor.

It is possible to set/clear it from script, however setting it doesn’t work, while clearing it does.

Is it a bug or there is a reason?

I made a script to enable/disable others scripts easily.

It is useful when you know that a script is crashing/making slower the launcher but you don’t know which one. Disabling script execution doesn’t let you know which one is the problem, and the only way now is to write ‘return’ before each one. (This is the reason I want this flag to be able to be set from script)

]]>

One Commentto Question to Pierre Hébert​:

  1. Anonymous says:

    < ![CDATA[

    This is a bug!


    Lightning clears the FLAG_DISABLED when saving the script (the app assumes the script has been modified and can now be reactivated), and since the API Script.setFlags() always saves the script afterward…


    I guess the flag has to be cleared in the script editor instead. It should be straightforward to change.

    ]]>

Leave a Reply

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