Hello!
I've got a script that I run to unmount all devices as follows:
When I double-click it, it launches in a terminal window and displays the following:
The devices get unmounted ok, that's fine, but the terminal window remains open. I'd like it to automatically close (and the terminal to exit as well, for that matter).
Please help. Thanks.
I've got a script that I run to unmount all devices as follows:
Code:
#!/bin/sh
osascript -e 'tell application "Finder" to eject (disks where free space * 0)'
When I double-click it, it launches in a terminal window and displays the following:
Code:
MacbookPro:~ Mishka00$ /Users/Mishka00/Scripts/unmount_all ; exit;
logout
[Process completed]
The devices get unmounted ok, that's fine, but the terminal window remains open. I'd like it to automatically close (and the terminal to exit as well, for that matter).
Please help. Thanks.