open a specific finder window (max8)

gratkowski's icon

Hello, is it possible to create a button, which opens a specific finder window in OS-X?

Rob Ramirez's icon

you can do it with the "launchbrowser" message to Max.
in a message box type:
; max launchbrowser file:/path/to/folder

Max Patch
Copy patch and select New From Clipboard in Max.

gratkowski's icon

I tried it but it doesn't work. Error message:
Max could not launch URL. err = -10810
Max could not launch URL. err = -673
Max could not launch URL. err = -43

When I use your example the finder will get in foreground but no application window. Also no error message.

gratkowski's icon

I solved the path problem. There was a space in a folder name with had to become %20.

But if there is no open folder in the finder there will not be an new one opened and an open window will not change to the right path.

Anything I'm doing wrong. As I said your example doesn't work either.

thanks

frank

gratkowski's icon

Ok found the problem. After file: need to be 3 slashes
file:///path/to/folder

Thanks

Frank