Computing.Net > Forums > Mac > How can applescript unmount a HDD?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

How can applescript unmount a HDD?

Reply to Message Icon

Name: Slim
Date: February 6, 2003 at 06:27:07 Pacific
OS: 9
CPU/Ram: 400/576
Comment:

Basicly I have now a hard disc on firewire, but for some reason or another it won't unmount when I shut down the computer and keeps spinning after the computer is off. I could probably resolve this with new drivers etc. But I really can not be bothered to find the problem. Unmounting manualy still works and that is what I currently do. I press Command + Y after higlighting the disc to unmount it. But I would like to make an apple script do it for me (I'm lazy). But recording one doesn't work. What do i need to put in the applescript? Thanks.




Sponsored Link
Ads by Google

Response Number 1
Name: the pickle
Date: February 6, 2003 at 13:55:41 Pacific
Reply:

"I can't be bothered to find the problem."

So you make *US* do your work for you?

You do realise that writing an AppleScript will take about twice as long as getting the right drivers, don't you?

p


0

Response Number 2
Name: Slim
Date: February 6, 2003 at 15:03:11 Pacific
Reply:

An applescript example of what I need.

tell application "Finder"
activate
select disk "Disc 2"
---unmount command here---
end tell

Doesn't look like it would take to long to me. And do you not think i've searched for the drivers? I have. I couldn't find any. So I gave up. And I couldn't be bothered to try and find them again. Applescript is a much easier option. Even if you don't think so.

And I don't want you to do it for me. I've already done it except for the command needed to unmount the drive. Like I said before recording doesn't work. So is someone going to tell me the command or what? Please?


0

Response Number 3
Name: the pickle
Date: February 6, 2003 at 15:10:49 Pacific
Reply:

A standard *nix unmount oughta do it.

Is this FireWire hard disk attached to the stock FireWire bus or an add-in card?
What brand is the enclosure?

p


0

Response Number 4
Name: Slim
Date: February 6, 2003 at 16:22:36 Pacific
Reply:

I dunno. I just bought it off a friend, its only a 5 gig, I use it to keep all my photos and pictures on it. I just stuck it into the firewire port on the side of my iMac. Even though its a small deal its bloody annoying if someone else uses my mac and doesn't unmount it when the shutdown. I walk in to hear this high pitched whining... most of the time I just turn the thing off. But it would be nice to get the applescript to do it for me.

And... whats a *nix unmount? How would I right that down in the script?

just

tell application "Finder"
activate
select disk "Disc 2"
*nix unmount
end tell?

Thanks for the help so far by the way, even though you may find me unbearably lazy.


0

Response Number 5
Name: the pickle
Date: February 6, 2003 at 18:22:36 Pacific
Reply:

Figure out the standard *nix command line for unmounting a disk.

p


0

Related Posts

See More



Response Number 6
Name: rhursto
Date: February 7, 2003 at 01:39:47 Pacific
Reply:

I think it's
umount


0

Response Number 7
Name: 5lim
Date: February 7, 2003 at 07:37:38 Pacific
Reply:

Eh... erm. Thanks.


0

Response Number 8
Name: the pickle
Date: February 7, 2003 at 10:09:08 Pacific
Reply:

Right, but you need to know what specific volume you're unmounting. Something like /dev/ and then a descriptor of the volume to be unmounted.

p


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Mac Forum Home


Sponsored links

Ads by Google


Results for: How can applescript unmount a HDD?

How can I rip a DVD On my mac? www.computing.net/answers/mac/how-can-i-rip-a-dvd-on-my-mac/8068.html

a mac to phone programm is needed! how can i make clear phone work? www.computing.net/answers/mac/a-mac-to-phone-programm-is-needed-how-can-i-make-clear-phone-work/998.html

how can I split files on a pc...... www.computing.net/answers/mac/how-can-i-split-files-on-a-pc/5288.html