Shop Forum More Submit  Join Login
WSH Tree Explorer 1.7 by Br3tt WSH Tree Explorer 1.7 by Br3tt
A Jscript for WSH panel Mod v1.4.2+, foobar2000 panel for ColumnsUI or DefaultUI layouts :)

I hope you'll like it, just paste the script into a WSH panel mod panel in your foobar2000 config :D

Important note: Do not forget to untick 'Safe Mode' option inWSH panel Mod settings (from foobar2000 menu File> Preferences), or you'll encounter a Aw crash :( message on startup

Changelog:
1.1
- '&' display fixed
1.2
- Drives Check accurated (was causing a crash on CD/DVD
unmout ...)
- New context command on right clicking the root node : File types to filter ...
1.3
- quickfix for UI Hacks users : virtual RAM Disk feature was crashing the panel.
1.4
- now open any file type on double click :)
- right click context menu code reorganized
1.5
- bug fixed when 'Computer' node was disabled
1.6
- bug fixed when removing a removable disk
1.7
- quickfix of v1.6 for UI Hacks users
Add a Comment:
 
:iconstevecole90099:
stevecole90099 Featured By Owner Jul 24, 2015
Hi Br3tt,
I'm new to jscript and scripting for foobar and was wondering if this script could be easily modified to only show the contents of one folder?
I keep songs on my android devices in sync by having them linked to a folder on my Google Drive. I would like to have a way to manage these folder from Foobar. The main thing I'm having trouble with is listing items in the folders so that I could select and delete them from within foobar. I already found and modified code that allows me to drop files on the panel and have them copied to the folder but right now the best I've been able to do with listing the files is just one long string with each filename on a new line.

Any help at all would be appreciated as it is very hard to find tutorials for WSH Panel beyond the samples it comes with.
Thanks
-Stevecole90099
Reply
:iconhndchy:
hndchy Featured By Owner Nov 6, 2013
hi brett, can you help me? im missing a folder in the wsh tree explorer, cant find where the problem
here's the preview :
foobar >>   i44.tinypic.com/11296z4.jpg
win explorer>>  i42.tinypic.com/smx369.jpg
thanks in advance
Reply
:iconderty2:
derty2 Featured By Owner Nov 2, 2011
Hi Br3tt,
This is the only "explorer" type of filesystem viewer left which works with newer versions of foobar2000 ! and my usage of foobar tends to be that way rather than using media library viewers.
This means I really NEED to get your WSH Explorer to work for me !
Unfortunately for me, there is no preference in the Properties page for EXCLUDING files; this is a showstopper problem for me...
My music collection is heavily biased towards CUE+IMAGE files and my naming scheme is: [01.cue + 01.cue.flac][02.cue + 02.cue.flac] etc etc .
This means I need to exclude files like this: *.cue.flac,; *.cue.ape; *.cue.wv .
Your WSH script does not work for me without an exclusion list.
---
I'm also scratching my head trying to make the Background "Dark Grey" and the font "White"
---
Yes I am a total noob at JScript... but I'm not that bad, I can read the logic in the code, I just don't know enough to edit :-(
Reply
:iconbr3tt:
Br3tt Featured By Owner Nov 2, 2011  Hobbyist Interface Designer
i can't help for now, i'm on other stuff, maybe later
Reply
:iconalbinoasian:
AlbinoAsian Featured By Owner Sep 11, 2011  Hobbyist Artist
Thank you so much,
I've tried moving over to foobar many times from winamp but couldn't as there was nothing that replicated the function I had in WA with the dynamic library plugin. Now this is perfect

I do have one question though is it possible to change/add a root directory to another folder? Browsing from My Computer is a little too many clicks =)
Reply
:iconnordfenix:
NordFeniX Featured By Owner May 27, 2011   Filmographer
Error: WSH Panel Mod (GUID: 17736927-8DB5-4A93-9E55-B34ECC291B8B): Microsoft JScript runtime error:
Object not a collection
Ln: 621, Col: 5
<source text only available in compile time>

var e = new Enumerator(fso.Drives);
WSH Tree Explorer 1.7

foobar 1.1.6 CrossOver OsX
Reply
:iconbr3tt:
Br3tt Featured By Owner May 28, 2011  Hobbyist Interface Designer
no OsX here, so i can't help with the drive that cause the error.
Reply
:iconbajaz001:
Bajaz001 Featured By Owner Mar 30, 2011
Big like :)

I just try this script and for now it's amazing. You rule
Reply
:iconbr3tt:
Br3tt Featured By Owner Apr 1, 2011  Hobbyist Interface Designer
ty :)
Reply
:iconbajaz001:
Bajaz001 Featured By Owner Apr 5, 2011
Anything about problem above*?
Reply
:iconbajaz001:
Bajaz001 Featured By Owner Mar 30, 2011
But i'm out of luck :(

[link]
Reply
:iconbr3tt:
Br3tt Featured By Owner Apr 5, 2011  Hobbyist Interface Designer
found tracks is enable ONLY for tracks present in the selected folder! that doesn't search for tracks that could be in all the subfolders. That's it.
Reply
:iconbajaz001:
Bajaz001 Featured By Owner Apr 11, 2011
But that is the problem. When i want add simply AVB whole folder then sux.
Reply
:iconxscarykidx:
xScaryKidx Featured By Owner Mar 20, 2011
Since I was bored I thought I was gonna play some more with this Tree Explorer and I found one thing that I disliked a lot.
When I right click and choose "Add tracks to playlist", the tracks doesn't get added in order, they're all over the place! I tried to add an album with two discs but it just gets messy.
Reply
:iconxscarykidx:
xScaryKidx Featured By Owner Mar 20, 2011
Even if it's only one disc it's still a mess.
Reply
:icontansjauharil:
TansJauharil Featured By Owner Mar 16, 2011  Hobbyist Digital Artist
how to apply this in spotifoo ?
Reply
:iconxscarykidx:
xScaryKidx Featured By Owner Mar 20, 2011
Depends on where you want it.
Reply
:iconttan98:
ttan98 Featured By Owner Mar 3, 2011
I am a novice in using Foobar, I have installed Spotifoo 1.3.1 and very happy with it.

I read your WSH Tree Explorer installation instructions many times I have no idea how to install it , can you explain(extra info) how I can install it. Thanks
Reply
:iconxscarykidx:
xScaryKidx Featured By Owner Mar 20, 2011
Download this script.
Open it.
Use CTRL+A to mark the whole document.
Go to Spotifoo.
Right click in the top (where the lines are), choose 'Splitter Settings'
If you want to install the Tree Explorer instead of the Playlist Manager, then click on 'WSH Playlist Manager', choose 'Configure'
Paste the script which you copied
Press "Apply" and then "OK"
There, done
Reply
:iconderty2:
derty2 Featured By Owner Mar 1, 2011
One final suggestion (idea)...
Maybe you could make this WSHExplorer panel even more fantastic
by including in the right-click ---> "Open With ..."
which pops up a simple launch menu (which is custom populated with programs)

If this function existed then the first two programs I would be adding would be
"MP3Tag" and "Photoshop CS3"

Vive
Reply
:iconderty2:
derty2 Featured By Owner Mar 1, 2011
Another problem...
I went into foobar preferences and deleted the path to my music library (F:\music).
I restarted foobar, I deleted references to all old links in in all my (columnsUI) panels ...in other words I went back to a blank fresh state.

So now... I went to "WSHExplorerTree~Br3tt" panel, and navigated to my music collection (at F:\music) and tried operating on the music files and NOTHING HAPPENS !! Right-click menu does not perform the "*... Playlist" functions !! Double clicking on a music file does not do anything !!
But... double-clicking on a text file and an image file still works OK
Reply
:iconderty2:
derty2 Featured By Owner Mar 1, 2011
One small problem...
I renamed a playlist item inside your WSHExplorer Panel,
and "Playlist Switcher" component also synchronized with the change,
so far so good,
But when I deleted the playlist item inside WSHExplorer Panel
the "Playlist Switcher" component did not synchronize with the change the change ...it did nothing.
Reply
:iconderty2:
derty2 Featured By Owner Mar 1, 2011
Great Script Br3tt ++++++++++
In fact it's more than great ...it is legendary !
A gift from from God landing directly on the lap of the foobar power user !

It is super responsive and feels rock stable (unlike the foo_uie_explorer and foo_uie_library_tree).
This script throws them into the "removed from foobar" bin ...forever!

It's so cool and precise to be able to navigate the whole computer like that, especially if you have a massive complex music collection, and also have a very eclectic naming convention (mine is all lowercase ...everything).

One example: my Pink Floyd "lossless" folder alone has over 30 albums ! vinyl, cd, reissue, remaster, original, 1st press, 2nd press, hi-rez, 24-96, MFSL, Mono, Bootleg, and so on, and so on...
This "WSHExplorerTree~br3tt" script is heaven for users like me !

All my albums also contain (apart from the music files) a "folder.txt" and a "folder.jpg" and this script allows me to "see" them and manipulate them in real time ...great stuff !

Hey br3tt, you should check out this other WSH script for viewing TXT and NFO files inside a WSH/Foobar Panel, it's cool:
"nfoo Viewer by ~MatthijsB [deviantart.com]"

*** Br3tt, do you have any tips to change the default colors of your script? I have a dark foobar theme.
maybe point out the relevant lines of code in the script, thanks.

*** WISH LIST: Right click on a folder and "Add folder to Playlist" (with selected folder name, like in AlbumList panel)

Thanks again for making and sharing this script ~Br3tt ++++++++++
Reply
:iconzhenglinlin:
zhenglinlin Featured By Owner Feb 19, 2011
does "auto collapse“ this work?

why every time i rerun foobar2000, it is always collapsed?
Reply
:iconbr3tt:
Br3tt Featured By Owner Feb 20, 2011  Hobbyist Interface Designer
normal. i call auto-collapse tha fact that a node with a level lower or equal the the node expanded (clicked) is automatically collapsed if it was expanded. i do noit memorize the status of each node on exit.
Reply
:iconzhenglinlin:
zhenglinlin Featured By Owner Feb 20, 2011
can you make it memorize the status of each node on exit?

or else i have to expand it every time?come on ,you can do it

if it can't memorize the status, What is the use of this plug-in?

think about it
Reply
:iconbr3tt:
Br3tt Featured By Owner Feb 27, 2011  Hobbyist Interface Designer
use favorites...
Reply
:iconhejiamei:
hejiamei Featured By Owner Mar 1, 2011
I don't know how to use favorites, i can't see it in the right menu.

how can i use favorites
Reply
:iconzhenglinlin:
zhenglinlin Featured By Owner Feb 19, 2011
unless checked the "auto collapse" properties or not…………
Reply
:iconmishkigammi:
mishkigammi Featured By Owner Feb 13, 2011
1.3 (quickfix for UI Hacks users) /1.4/1.5 works fine

but 1.6 (bug fixed when removing a removable disk): crashed if I use UI Hacks (Virtual disk B)

Error: WSH Panel Mod (WSH Tree Explorer v1.6 by Br3tt): Microsoft JScript runtime error:
'child[...]' is null or not an object
Ln: 634, Col: 13
Reply
:iconbr3tt:
Br3tt Featured By Owner Feb 13, 2011  Hobbyist Interface Designer
should now be fixed in v1.7, please, gimme feedback please. Thanx.
Reply
:iconmishkigammi:
mishkigammi Featured By Owner Feb 15, 2011
works. thx.
Reply
:iconmishkigammi:
mishkigammi Featured By Owner Feb 13, 2011
if I remove 634&635 lines works fine
Reply
:iconjimfield:
JimField Featured By Owner Feb 9, 2011
Great will try this out very soon.
Reply
:iconzin-uru:
Zin-Uru Featured By Owner Feb 6, 2011
New idea: can you add please an option to create Library view autoplaylist as in your Playlist Switcher?
And so what about automatic detecting possible extensions (see above)?

Thank you! :)
Reply
:iconbr3tt:
Br3tt Featured By Owner Feb 6, 2011  Hobbyist Interface Designer
"add please an option to create Library view autoplaylist as in your Playlist Switcher"

==> i will

"And so what about automatic detecting possible extensions (see above)?"

==> i won't, filter have to be set manually by each user if he want to add some new file type, there is an option for that since 1.4
Reply
:iconseraphsf:
seraphsf Featured By Owner Feb 5, 2011
This looks good and after some fiddling I think I got it working. One thing I'm struggling with is getting it to show My Music folder. I'm on Windows 7 and I have My Music folder on the E: drive as a symbolic link. Other folders show up but ones with symbolic links don't. Is there something I can do to get it to work?
Reply
:iconbr3tt:
Br3tt Featured By Owner Feb 5, 2011  Hobbyist Interface Designer
no. btw a symbolic link always refer to (a) real link(s)! just add to favorites node the real folder places
Reply
:iconmishkigammi:
mishkigammi Featured By Owner Feb 5, 2011
I use UI Hacks (the great plugin). If I add virtual disk (Preference/UI Hacks/Portability), I get an error:

[11:39:52] Error: WSH Panel Mod (WSH Tree Explorer v1.2 by Br3tt): Microsoft JScript runtime error:
Disk not ready
Ln: 644, Col: 17
<source text only available at compile time>

fix plz. best regards.
Reply
:iconbr3tt:
Br3tt Featured By Owner Feb 5, 2011  Hobbyist Interface Designer
fixed in 1.3
Reply
:iconzin-uru:
Zin-Uru Featured By Owner Feb 5, 2011
I use UI Hacks too. The only way I've found to fix the problem with virtual drive is to exclude scanning said one.
Replace string:
if (drv.IsReady) {
to:
if (drv.IsReady && drv!="B:") {
See code near 644 line. If your virtual disk is not "B:" so change a letter to another one.
Reply
:iconmishkigammi:
mishkigammi Featured By Owner Feb 5, 2011
Спасибо.
Reply
:iconzin-uru:
Zin-Uru Featured By Owner Feb 5, 2011
In the new code version (1.2) it will look like:
if ((drv.IsReady || drv.DriveType==4) && drv!="B:") {
Reply
:iconmishkigammi:
mishkigammi Featured By Owner Feb 5, 2011
Is it possible to add drag and drop folders to the playlist?
Reply
:iconbr3tt:
Br3tt Featured By Owner Feb 5, 2011  Hobbyist Interface Designer
unfortunately no
Reply
:iconcymil:
cyMil Featured By Owner Feb 4, 2011
nice
i use it now
but i hope it can double click on playlist for playing and create folder just like playlist organizer
Reply
:iconbr3tt:
Br3tt Featured By Owner Feb 5, 2011  Hobbyist Interface Designer
i see no interrest in a such feature. If double click a playlist, where is the folder created ? (drive ? many possibilities, path : idem ...)
Reply
:iconinsnowflakes:
insnowflakes Featured By Owner Feb 4, 2011
Very nicely done!
Reply
:iconbr3tt:
Br3tt Featured By Owner Feb 5, 2011  Hobbyist Interface Designer
merci!
Reply
:iconrazor-87:
RAZOR-87 Featured By Owner Feb 4, 2011
orry, everything was fine, just do not have to put on top of version 1.1.
Reply
Add a Comment:
 
×




Details

Submitted on
February 3, 2011
File Size
10.1 KB
Link
Thumb

Stats

Views
26,218 (1 today)
Favourites
40 (who?)
Comments
104
Downloads
3,114