XML Feeds

.

[maxmsp] Buffer~, problem with path and external HD

Léopold Frey leopold.frey at free.fr
Wed Dec 19 12:56:38 MST 2007


Hi

You have to manually convert "Macintosh HD:/volumes/peiman 120 GB/" to 
"peiman 120 GB:/".
It's easier directly in the java file.
Something like this :

    public String conform(String s)
    {
        if (s.indexOf("/Volumes/") != -1)
        {
            s = s.substring(s.indexOf("Volumes") + 8);
            int ind = s.indexOf("/");
            s = s.substring(0, ind) + ":" + s.substring(ind);
        }
        return s;
    }

It should also be possible to do it with standard max objects.

leo

Peiman Khosravi a écrit :
> Hi all,
>
> I am using the "mxj filebrowse" 
> (http://www.cycling74.com/twiki/bin/view/Share/TopherLafata) to brows 
> an external HD (firewire). So far so good. "mxj filebrowse" returns a 
> path like this (for the selected file): "Macintosh HD:/volumes/peiman 
> 120 GB/sounds 2007_08/ICE/lic pot 2.aif"
>
> I am trying to use this path to read a file into buffer~. But it seems 
> that for an external HD, buffer~ only accepts a path like this (I 
> don't know what this style is called!):
>
> "peiman 120 GB:/sounds 2007_08/ICE/lic pot 2.aif"
>
> I.e. the external HD is read as the top level of the path rather than 
> "macintosh HD:" (followed by /volumes/ etc...). I have tried using 
> conformpath but it doesn't make any difference. Is there anyway around 
> this problem?
>
> I have been searching the net for an answer for some time but I 
> haven't managed to find a way yet. I would very much appreciate any 
> advice.
>
> Many Thanks
> Peiman

-- 
*Léopold Frey*
77, rue de Bernières
14000 Caen
02.31.86.40.80
06.84.39.91.46
leopold.frey at free.fr



More information about the maxmsp mailing list