opendialog–>java path string

Apr 6, 2007 at 8:13am

opendialog–>java path string

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.

#31221
Apr 6, 2007 at 8:42am

do you mean ou want to convert something like

Data:/Dir1/Dir2/test.aif

to

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

?

G

#101115
Apr 6, 2007 at 11:04am

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

#101116
Apr 6, 2007 at 4:19pm

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

#101117

You must be logged in to reply to this topic.