Forums > Java

opendialog–>java path string

April 6, 2007 | 8:13 am

sorry for two questions so close together..

is there any bulletproof method for canverting a max path to a string usable by the File class constructor? I almost had it down with regexps… but I’m not sure about alternative hard drives.


April 6, 2007 | 8:42 am

do you mean ou want to convert something like

Data:/Dir1/Dir2/test.aif

to

/Volumes/Data/Dir1/Dir2/test.aif

?

G


April 6, 2007 | 11:04 am

On 6 Apr 2007, at 09:13, Matthew Aidekman wrote:

> is there any bulletproof method for canverting a max path to a
> string usable by the File class constructor?

com.cycling74.max.MaxSystem.maxPathToNativePath()

The class has methods for various kinds of path format munging.

– N.

Nick Rothwell / Cassiel.com Limited
http://www.cassiel.com
http://www.myspace.com/cassieldotcom
http://www.loadbang.net


April 6, 2007 | 4:19 pm

Matt ! RTFM
sorry, I was so focused on trying to find something on the sun side, I forgot about the cycling side…


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