• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Unknown token in do shell script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Unknown token in do shell script (From: Iurista GmbH <email@hidden>)

  • Prev by Date: Re: Unknown token in do shell script
  • Next by Date: Re: Please Test ยป Safari Save Problem
  • Previous by thread: Re: Unknown token in do shell script
  • Next by thread: Re: Unknown token in do shell script
  • Index(es):
    • Date
    • Thread