Re: How to choose a hard disk or volume?
Re: How to choose a hard disk or volume?
- Subject: Re: How to choose a hard disk or volume?
- From: Paul Berkowitz <email@hidden>
- Date: Thu, 14 Dec 2000 01:55:03 -0800
On 12/14/00 12:04 AM, "Gary Hobish" <email@hidden> wrote:
>
At this point, the WHOLE of the script is:
>
>
set localDisk to (choose disk)
But there is no built-in (nor any other, as far as I know) scripting
addition called 'choose disk'. There are both a 'choose folder' and a
'choose file' scripting additions in the Standard Additions that ships with
the Mac OS. 'choose folder' works for disks too: try it and you'll see.
You can only use commands that exist in application dictionaries, in
scripting additions which you have installed (read their dictionaries) , or
in basic AppleScript (check the AppleScript Language Guide).
May I ask where you got the idea that you could just write 'choose disk' and
something would happen? Wishful thinking, or something else?
I suspect that there is some scripting addition out there that might let you
do this with some syntax or other. I checked Akua Sweets, but it just has a
rather complicated and nerdy command for 'default startup disk':
default startup disk [ a list of small integer] -- A list of parameters
defining the startup device.
Result : a list of small integer -- A list of 4 parameters defining the
startup device. I would suggest only using something you've gotten before...
{Device, Partition, Slot, Rsrc} or {Rsvd, Rsvd, ScsiRef1, ScsiRef2}
You see what I mean. None of the other likely candidates (XCMD, Tanaka's,
Jon's, Satimage) which I have have anything like that. Maybe someone else
knows a way to select just a disk.
But why not use 'choose folder'?
--
Paul Berkowitz