View Single Post
Old 02-09-2010, 06:37 PM   #25
ischeriad
Connoisseur
ischeriad began at the beginning.
 
ischeriad's Avatar
 
Posts: 91
Karma: 28
Join Date: Apr 2007
Location: Germany
Device: PB Pro 903, Kobo Touch [Past: Story, Clié N770C, SL-10, Palm IIIxe, V]
I wrote an AppleScript for unmounting my reader so it does not reappear. I posted it in the german subforum already but thought someone might want to try it here:
Code:
(*
	Script for unmounting reappearing eBook reader volumes
	written for mobileread forums, © 2010 ischeriad
*)

set VolumeName to "STORY"

tell application "Finder"
	if (exists the disk VolumeName) then
		set MountPoint to do shell script "diskutil info '" & VolumeName & "' | sed -n 's/.*Mount Point[^/]*//p'"
		do shell script "dot_clean -n '" & MountPoint & "' && diskutil unmount '" & MountPoint & "'"
	end if
end tell
Replace the VolumeName (here STORY) with the actual volume name of your device. Open Utilities/AppleScript Editor.app and save the script to ~/Library/Scripts. When you enable the Script menu in AppleScript Editor, you can access the script directly from the menu bar.

I appreciate feedback on the script, it works with my iRiver Story.
ischeriad is offline   Reply With Quote