Currently Being ModeratedJun 14, 2013 5:56 AM (in response to ApMaX)
I'm not being funny, but having followed a number of your posts and threads on this issue, I have to say it does seem like you're not trying to solve a particular problem you're having, but rather exploiting the knowledge of this forum's users to develop and distribute an App to others that will do something which you don't have any understanding yourself of how to do.
I might be wrong, I probably am, and I hope I am, but in case I'm not let me point out this:
this is a forum for troubleshooting problems, answered by fellow amateur enthusiasts, and not a free 'develop my app for me' service.
Currently Being ModeratedJun 14, 2013 7:17 AM (in response to Phil Stokes)
You are absolutely wrong. I am just trying to solve problems on Mac for me. Nothing else. Nothing at all about you say, which only creates FUD. Stop it!
Currently Being ModeratedJun 14, 2013 8:47 AM (in response to ApMaX)
Make your variable names unique in each code block and your script should run without any problems; or you could create a list of each device name and loop thru the list in one code block.
Currently Being ModeratedJun 14, 2013 9:44 AM (in response to Mark Jalbert)
Thanks, but I have no idea of script codes. If possible, I will appreciate if you could please copy/paste, modify and show it as you indicate. Sorry for my ignorance. Thanks again.
Currently Being ModeratedJun 14, 2013 11:50 AM (in response to ApMaX)
The AppleScript script below will unmount every device node which is mounted at mount point in /Volumes. Not sure whether it is safe with RAID.
do shell script "for dev in $(mount | perl -lne 'print $1 if m%(^/dev/[^[:space:]]+) on /Volumes/.*%o') do diskutil unmount $dev >/dev/null 2>&1 & done"
Currently Being ModeratedJun 14, 2013 2:56 PM (in response to Hiroto)
That worked beautifully with different Macs to unmount any disk (except the booting one, of course), including the internal Macintosh HD (when booting from external disk or other disk), USB Pendrives and Flash Memory Cards.
The unmounted disks show also in Disk Utility (dimmed)or using Mountain
so that it is possible later on to mount them manually without having to unpug and plug the external disks.
You made my day after weeks for search for this tool!!!