curiosity with do shell script
curiosity with do shell script
- Subject: curiosity with do shell script
- From: email@hidden
- Date: Sat, 13 Mar 2004 22:25:47 +1100
hi there
experimenting with other solutions to eject disks i tried the shell
approach. in a terminal session i typed:
diskutil eject '/Volumes/Leos iPod'
which behaves nicely: it ejects if possible (even writes an appropriate
message to the terminal) and it does nothing if the Volume is in use.
however, issuing the same inside applescript with a line like
do shell script "diskutil eject " & quoted form of ("/Volumes/Leos
iPod")
behaves differently: regardless wether the iPod is in use or not this
command umounts the icon on the desktop but doesn't eject the ipod: the
"do not disconnect" sign still appears on the ipod screen.
that seems to me like a _very_ buggy behavior and additionally i have
no idea _why_ it happens: the underlying unix command is in the
terminal and in applescript the same.
thanks for any explanations.
leo
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.