Forums > MaxMSP

Remove USB device from MAX in OSX?


PEL
February 14, 2012 | 11:24 am

Hello!

Anyone has any idea on how to remove an USB device in OSX from a MAX object? I need to simply eject a USB key after it has been used so the technician on a show can just put it out without bothering with the screen and mouse.

THANKS!


February 14, 2012 | 12:30 pm

You have two options for scripting drive unmounting: 1) the terminal command unmount and 2) the AppleScript command eject.

tap.applescript is the only object that I know of to run AppleScripts from Max, so if you don’t have tap.tools, maybe that won’t work.

The other option is to use shell or aka.shell to run terminal commands. You could use those objects to run the unmount command or to run an AppleScript via the osascript command. Haven’t tested doing this particular shell stuff via Max, but should work in theory.


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