• 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
Shell Script Failure
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Shell Script Failure
      • From: Christopher Nebel <email@hidden>
  • Prev by Date: Re: Listing labelled folders: choose folder vs. Manual alias
  • Next by Date: The Excel 2004 battle continues
  • Previous by thread: GUI scripting disguised as AS ?
  • Next by thread: Re: Shell Script Failure
  • Index(es):
    • Date
    • Thread