Mac Help Forums


Reply
Thread Tools Display Modes

do shell script "diskutil unmount diskXXX"

 
New Member
Join Date: Nov 2006
Posts: 2
 
      28th November 2006
Don't know whether someone would like to give this a whirl, but it has been posted on Apple AS & UNIX discussions without a reply (except for others reinforcing the question).

Bear with me, as this does have to do with AS.

If, in Terminal, one does the command
diskutil mount diskXXX
or
diskutil unmount diskXXX

the response is very quick, ~1 second.

However, if this is done in AS editor as "do shell script", the unmount (while reliable) takes upwards of 20 seconds on my fast machine, whereas the mount time is very quick.

According to an AS Discussions respondent, the same sort of delay can be expected when using an obj-C application.

Still another AS Discussions respondent had queried Mac Fix It on the reason for this and was told that it probably had to do with preparation of the disk for unmounting -- but then, why wouldn't the same thing happen directly in Terminal?

In fact, using both approaches, I tried to unmount a disk with an open application and in both cases got a "disk failed to unmount" response (meaning that Terminal
is doing some checking, at least).

A workaround would be great, but an understanding of what's going on would be useful. Any ideas?
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Finder's "copy" and shell's "cp" hang bodhiSoma Mac 1 13th December 2007 06:23 AM
"do shell script" error dazz AppleScript 4 28th November 2006 12:22 AM
relative path in "do shell script" xkp AppleScript 2 7th April 2004 06:31 PM
do shell script "system_profiler... Bruno AppleScript 3 28th January 2004 05:16 AM
Source code for "syslog()" and "open" command shell Alain Birtz Programmer Help 3 2nd January 2004 03:03 AM


All times are GMT +1. The time now is 05:04 AM.
Mac-Help.com is an independent website and is not affiliated with Apple Inc.


Welcome!
Welcome to the Mac Help Forums
 


Latest Threads
Help! Stupid computer is automatically logging me out
Elizaboo (6 Hours Ago, 10:41 PM)

URGENT Help. Crazy talk Mac!
Joeker (7 Hours Ago, 09:42 PM)

PDF Document
yura (16 Hours Ago, 12:13 PM)

Difficulties with internet speed (nothing to do with connection)
sammethh (22 Hours Ago, 06:36 AM)

Deleting a homepage/website form my mac book pro
rgandajg (1 Day Ago, 10:30 PM)

 


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51