Re: Unknown token in do shell script
Re: Unknown token in do shell script
- Subject: Re: Unknown token in do shell script
- From: Luther Fuller <email@hidden>
- Date: Thu, 08 Mar 2012 13:27:31 -0600
On Mar 8, 2012, at 12:23 PM, Iurista GmbH wrote: I want to unmount a volume. When I enter in Terminal % diskutil unmount /Volumes/myDisk\ Leo, that works fine. Now I write an applescript: do shell script "diskutil unmount /Volumes/myDisk Leo", that does not work But if I write: do shell script "diskutil unmount /Volumes/myDisk\ Leo", Applescript says that the backslash is an unknown token...
What do I wrong?
This works ...
property myDisk : alias "LutherFuller-2"
quoted form of (POSIX path of myDisk) do shell script "diskutil unmount " & the result --> "Volume LutherFuller-2 on disk2s2 unmounted"
But, so does this ...
tell application "Finder" to eject myDisk
|
_______________________________________________
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