How to close the current folder by script ? TrianguloY
How to close the current folder by script ? TrianguloY
]]>
« Anyone remember what icon font Lightning uses? (Previous Post)
< ![CDATA[
Dunno about the current one but I use this to close em all.
var folders = LL.getOpenFolders();
for (var i = 0; i < folders.length; i++){
folders.getAt(i).close();
}
]]>
< ![CDATA[
If with current folder you mean the last opened one, LL.getOpenFolders().getAt(0).close() should work
]]>
< ![CDATA[
TrianguloY working perfect. Thx
]]>
< ![CDATA[
Note that this might throw an exception if there are no open folders.
]]>
< ![CDATA[
Lukas Morawietz no issue I’m calling it from an open folder
]]>