Re: Unknown token in do shell script
Re: Unknown token in do shell script
- Subject: Re: Unknown token in do shell script
- From: Doug McNutt <email@hidden>
- Date: Thu, 08 Mar 2012 18:37:23 -0700
At 10:11 +1100 3/9/12, Shane Stanley wrote:
>On 09/03/2012, at 8:13 AM, Iurista GmbH wrote:
>
>> But also Doug's solution (do shell script quoted form of "diskutil unmount /Volumes/myDisk Leo") does not work...
>
>There's no point quoting the whole command. try this:
>
>do shell script "diskutil unmount " & quoted form of "/Volumes/myDisk Leo"
>
>--
It's possible that the user calling the script does not have permission to eject the disk. Also the system may not want to eject when something is open in an application or in Finder itself.
I would expect an error message for those though.
It would be worth trying the command in a Terminal window where STDERR would not get lost and a sudo could easily be prefixed.
--
--> A fair tax is one that you pay but I don't <--
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden