";launchbrowser" file path on DVD and USB.

Nnd.'s icon

Hi all,

I am using the ;launchbrowser function to open a processing sketch from within Max. All works fine on my computer.

However, I am presenting the project on DVD and USB media, and so my problem is how to change the file path so that it works from DVD.

I have tried simply using the name of the USB device and resultant path but that doesn't work. Like this:

;
max launchbrowser file:///USBDevice/Folder1/File.app

Any help would be much appreciated.

Thanks in advance.

PhiDjee's icon

Try this:

;
max launchbrowser "file://localhost/Volumes/USBDevice/Folder1/File.app"

HTH,
Phil

Christopher Baker's icon

I've got a similar issue -- but on Windows. On OSX I can "show" a folder by issuing the message:

;
max launchbrowser "file:///Volumes/MyFolder/"

But when I do something similar on windows -- say:

;
max launchbrowser "file://C:Program Files"

Nothing happens. Is it possible to open a folder on Windows in this way? It works quite nicely on a Mac.

Nnd.'s icon

Brilliant, works perfectly.

Thank you very much Phil.