Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Two AppleScripts for unmounting, mounting local disk volumes' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Two AppleScripts for unmounting, mounting local disk volumes
Authored by: Rhodess on May 15, '12 10:28:36PM

I love the scripts....... But how do I modify them to list all mounted network shares and then allow one to choose which share to unmount?

ls /Volumes
hdiutil unmount /Volumes/

tell application "Finder"
if (exists the disk "ShareName") then
do shell script ("hdiutil unmount /Volumes/ShareName -force")
end if
end tell

I tried playing around with the above commands, but I can't get it to work.



[ Reply to This | # ]