Forums > MaxMSP

findfolder replacement

May 8, 2006 | 3:39 pm

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


May 8, 2006 | 4:49 pm

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


May 8, 2006 | 5:04 pm

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


May 8, 2006 | 5:45 pm

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


May 8, 2006 | 8:08 pm

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


Viewing 5 posts - 1 through 5 (of 5 total)