Shell Script Failure
Shell Script Failure
- Subject: Shell Script Failure
- From: Jennifer Charrey <email@hidden>
- Date: Tue, 29 Nov 2005 11:48:05 -0700
Hello,
I just stumbled across AppleScript's "do shell script" functionality.
Very handy. However, whenever I execute a certain command within the
shell script, I get an error. The command is "diskutil unmount
[identifier]" to unmount a partition. It works fine on the command line
or in a perl script, but when I call the script from AppleScript an odd
thing happens: AppleScript kind of hangs for a while, then diskutil
throws the error "Volume failed to unmount". Simultaneously the volume
DOES unmount! So when I add AppleScript to the equation, diskutil does
weird stuff.
I have tried:
* adding the "force" option to diskutil unmount
* writing everything as a perl script called by a one-line AppleScript
* do shell script with user name, pass, and admin privileges
Any suggestions? Obviously I can suppress the error but the script still
takes forever to run, and I'm curious how to fix the problem.
Thanks in advance.
Jennifer
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden