Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.mac.apps > #27919 > unrolled thread

AppleScript question

Started byMike Cook <mcham@NOTyahoo.com>
First post2015-02-22 15:18 -0800
Last post2015-02-23 00:42 +0000
Articles 3 — 3 participants

Back to article view | Back to comp.sys.mac.apps


Contents

  AppleScript question Mike Cook <mcham@NOTyahoo.com> - 2015-02-22 15:18 -0800
    Re: AppleScript question Warren Oates <warren.oates@gmail.com> - 2015-02-22 18:37 -0500
    Re: AppleScript question Jolly Roger <jollyroger@pobox.com> - 2015-02-23 00:42 +0000

#27919 — AppleScript question

FromMike Cook <mcham@NOTyahoo.com>
Date2015-02-22 15:18 -0800
SubjectAppleScript question
Message-ID<0001HW.D10FA3AA0265EEA0B01029BF@news.eternal-september.org>
I want to unmount a volume, one of 2 on a hard drive. I have successfully 
unmounted the drive but, of course, this unmounts both volumes:

     do shell script "diskutil unmountDisk " & diskDev

How can I unmount just one volume?

Thanks!

[toc] | [next] | [standalone]


#27921

FromWarren Oates <warren.oates@gmail.com>
Date2015-02-22 18:37 -0500
Message-ID<54ea6841$0$46591$c3e8da3$9b4ff22a@news.astraweb.com>
In reply to#27919
In article 
<0001HW.D10FA3AA0265EEA0B01029BF@news.eternal-september.org>,
 Mike Cook <mcham@NOTyahoo.com> wrote:

> I want to unmount a volume, one of 2 on a hard drive. I have successfully 
> unmounted the drive but, of course, this unmounts both volumes:
> 
>      do shell script "diskutil unmountDisk " & diskDev
> 
> How can I unmount just one volume?
> 
> Thanks!

diskutil unmount [volume]
-- 
Where's the Vangelis music?
Pris' tongue is sticking out in in the wide shot after Batty has kissed her.
They have put back more tits into the Zhora dressing  room scene.
  -- notes for Blade Runner

[toc] | [prev] | [next] | [standalone]


#27923

FromJolly Roger <jollyroger@pobox.com>
Date2015-02-23 00:42 +0000
Message-ID<ckvbboFkucgU1@mid.individual.net>
In reply to#27919
On 2015-02-22, Mike Cook <mcham@NOTyahoo.com> wrote:
> I want to unmount a volume, one of 2 on a hard drive. I have successfully 
> unmounted the drive but, of course, this unmounts both volumes:
>
>      do shell script "diskutil unmountDisk " & diskDev
>
> How can I unmount just one volume?

tell app "Finder" to eject "Disk Name Here"

-- 
E-mail sent to this address may be devoured by my ravenous SPAM filter.
I often ignore posts from Google. Use a real news client instead.

JR

[toc] | [prev] | [standalone]


Back to top | Article view | comp.sys.mac.apps


csiph-web