Toggle only Hidden/Visible in App Drawer
Toggle only Hidden/Visible in App Drawer
As requested by Efren Rivera
Nothing is impossible with scripts!
This is a bit hackish, make a backup before try.
It has to restart the launcher to work, so it may “flash” shortly.
Pierre Hébert is there an easier way to toggle hidden/visible in the app drawer? Or to cause an update/reload on the app drawer files?
]]>« Pierre Hébert Lukas Morawietz (if you have any idea) (Previous Post)
(Next Post) I would like to set a “Name” for items. »
< ![CDATA[
Can you explain what the code do? (you never comment your code… Difficult to learn and modify!)
]]>
< ![CDATA[
Yes, I’m a bit too lazy to comment my code… 😛
This script goes through all “items” files which belong to a container in the app drawer and toggles the hidden property. Then it restarts the launcher to make it load the data.
]]>
< ![CDATA[
Thanks for the code, but would need assistance regarding this. How should I run this script? I opened the script editor, pasted the code there, set an event for it but it throws a “cannot find function bindclass” error. It’s probably a noob moment on my part, but is it something that I’m doing wrong?
]]>
< ![CDATA[
No, thats not your fault. I forgot to say this requires the latest beta. So register as beta tester if you want to use it.
]]>
< ![CDATA[
Hmm, I thought I was on beta. I’ll look into that then. Thanks!
]]>
< ![CDATA[
Nice, works like a charm. Thanks again!
]]>
< ![CDATA[
This is not a “bit hackish”, this is a real kludge, lol 🙂
System.exit is the only wait to stop the process hosting the app and preventing it to save its data properly, and hence this is the only solution to reload data you have just overwritten in its back.
]]>
< ![CDATA[
Not really. It works also without the last two lines. Then you just have to kill the launcher by it’s own appkiller ;)
Provide us a method for this and we can stop overwrite things in data files
]]>
< ![CDATA[
I mean: “a stop not initiated by the launcher itself” 😉
]]>
< ![CDATA[
Oh and the exit code 2 is just random 😛 it shouldn’t make a difference with any integer 0
]]>
< ![CDATA[
This is a reminiscence of another era…
]]>
< ![CDATA[
You should add the wiki link for the script, in the first post of this thread!
]]>