[X4U] Tiger applescript to remove drives

Brian Lalor blalor at bravo5.org
Fri Jul 8 07:54:01 PDT 2005


On Jul 7, 2005, at 11:59 PM, Crandon David wrote:

> Forgive me Brian, but you mean  this is an applescript? How exactly  
> can I test this out?

No, it's a shell script.  If you're not comfortable with the command  
line, you may want to shy away from this one...

Create a text file, and put the following in it, replacing XXX with  
your volume name, and save the file somewhere:
 >>> begin
#!/bin/bash
diskutil unmount "/Volumes/XXX"
<<< end

In Terminal, do the following as an administrative user, entering  
your password when prompted:
     # sudo mv -i /path/to/that/file /etc/rc.local
     (if you get prompted to overwrite, say no and figure out why  
it's there!)
     # sudo chmod +x /etc/rc.local

When your computer boots the next time, that script will run.

--
    __   ____
   / /  / __/ Brian Lalor           "If you still have gas, you're  
not lost."
  / _ \/__ \  blalor at bravo5.org             -- Jacques Strappe
/_.__/____/  http://bravo5.org/




More information about the X4U mailing list