findfolder replacement

May 8, 2006 at 3:39pm

findfolder replacement

I have been using David Zicarelli’s excellent-but-unsupported
“findfolder” external (OS X) to report on the path to the computer’s
main plugin folder (e.g. “Macintosh HD/Library/Audio/Plug-Ins/”),
and/or the user’s plugin folder (e.g. “Macintosh
HD/Users/dan/Library/Audio/Plug-Ins/”)

I’m now trying to implement the same thing using *only* supported
objects, and also not using any 3rd party externals either.

Is Javascript or Java the best/only way to do this? If so, has
anyone done this already and can share?

thanks,
Dan

Dan Nigrin
Defective Records
202 Hack / PC-1600 User / VSTi Host / OMS Convert / Jack OS X
http://www.defectiverecords.com

http://www.jackosx.com

#25843
May 8, 2006 at 4:49pm

On 8-May-2006, at 17:39, Dan Nigrin wrote:
> Is Javascript or Java the best/only way to do this? If so, has
> anyone done this already and can share?

I recently did something like this in C. Sample code for traversing &
searching folder trees abounds in the net.

You obviously don’t want my object because it’s “3rd party.” If it’s
your own external, it ain’t 3rd party, is it? If it is, I’m not sure
why Java is any less so, but you’re the one writing the “rules”-)

I ‘spect you can do what you want either in Java or JScript.

– P.

————– http://www.bek.no/~pcastine/Litter/ ————-
Peter Castine +—> Litter Power & Litter Bundle for Jitter
Heavy-Duty Mathematics for Everyday Use
iCE: Sequencing, Recording &
Interface Building for |home | chez nous|
Max/MSP Extremely cool |bei uns | i nostri|
http://www.dspaudio.com/ http://www.castine.de

#76575
May 8, 2006 at 5:04pm

Thanks Peter. It’s not that I’m opposed to using 3rd party things,
but in some cases I like to have no dependencies on anyone but
Cycling, especially when doing code migrations to new platforms (e.g.
Windows, MacIntel, etc..).

So yes, if I built my own external, that wouldn’t count. But since
I’m not an external writer, looks like I’m headed to Java/Javascript.

Thx,
Dan


Dan Nigrin
Defective Records
202 Hack / PC-1600 User / VSTi Host / OMS Convert / Jack OS X
http://www.defectiverecords.com

http://www.jackosx.com

#76576
May 8, 2006 at 5:45pm

Hi Dan,
Check out Topher LaFata’s page. He has an mxj object called
filebrowse that should give you an idea as to how to do a foler
search.

http://cycling74.com/twiki/bin/view/Share/TopherLafata?t=200 6-04-27T17:23Z?rev=1.4

best,
wes

#76577
May 8, 2006 at 8:08pm

Thanks for the tip Wes – just had a look and hopefully will be able
to extract the relevant bits out of Topher’s work.

And Topher – nice patch!!

Dan


Dan Nigrin
Defective Records
202 Hack / PC-1600 User / VSTi Host / OMS Convert / Jack OS X
http://www.defectiverecords.com

http://www.jackosx.com

#76578

You must be logged in to reply to this topic.