From: Steve on
On Apr 20, 1:00 am, Bruce Horrocks <07....(a)scorecrow.com> wrote:
> On 19/04/2010 22:56, Steve Hodgson wrote:
>
> > I'm using an Applescript to unmount my local USB drives but get a dialog
> > when I run it because one drive is partitioned into two. The message
> > asks if I want to eject all partitions or just one.
>
> > Can anyone think of a way to remove or disable the prompt?
>
> eject takes a list as a parameter so you could try ejecting all in one
> command, viz:
>
> tell application "Finder" to eject (every disk whose local volume is true)
>
> Or better might be:
> tell application "Finder" to eject (every disk whose ejectable is true)

Would that not still create the dialogue when it hits the first
partitioned drive in the list?

I tried a menu bar application called 'Ejector' last night and that
did eject all drives with no dialogues so I suspect this will be
possible. Ejector was no use as it ejects ALL drives including iDisks.
--
Cheers,

Steve