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: Phi Sanders <email@hidden>
- Date: Thu, 14 Dec 2000 03:32:32 -0500
There isn't any "choose disk" command in AppleScript...
See the scripting additions dictionary for confirmation.
~Phi
--
Phi Sanders
"Phee, Phi, Pho, Phum..."
On 12/14/00, Gary Hobish {email@hidden} said the following :
>
Nope, there's no stray quote, and in fact there is no texte preceding the
>
line I posted. Quite simply, if I change the word "disk" to "file," or
>
"folder," the script compiles without a complaint.
>
>
At this point, the WHOLE of the script is:
>
>
set localDisk to (choose disk)
>
>
Gary Hobish
>
Armin Hammer Productions
>
San Francisco
>
>
> From: Paul Skinner <email@hidden>
>
> To: <email@hidden>
>
>
>
> Check your script carefully, or post it. I think that you have a
>
> mismatched quote character in the text preceding the error that the editor
>
> is highlighting. This would cause the compiler to read the quote before
>
> 'Choose' as a closing quote and to read the text 'disk' as the object
>
> 'disk'.
>
> --
>
> Paul Skinner
>
> Ron Chapple Studios
>
>
>
>> I want the user to choose a volume within a script. I have tried:
>
>>
>
>> set localDisk to (choose disk with prompt "Choose your startup disk.")
>
>>
>
>> but I get an error when checking syntax on the word "disk" which says
>
>> "Expected "," but found identifier."
>
>>
>
>> I tried the same thing with the word "volume" replacing "disk" but got the
>
>> same error.
>
>>
>
>> Any ideas?