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: Luca Pozzato <email@hidden>
- Date: Thu, 14 Dec 2000 12:34:54 +0100
if you want select just local disks you can try this
--------
tell application "Finder"
set start_disk to startup disk as text
set localDiskList to every disk of folder (start_disk & "desktop
folder:")
set List_stuff to choose from list localDiskList with prompt "Select
Disk" without multiple selections allowed
set My_disk to the result
end tell
--------
Luca Pozzato
EuroGrafica
Italy
>
From: Gary Hobish <email@hidden>
>
Date: Wed, 13 Dec 2000 18:37:30 -0800
>
To: email@hidden
>
Subject: How to choose a hard disk or volume?
>
>
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?
>
>
Also, how would I go about telling a system to restart from a script?
>
>
Thanks,
>
>
Gary Hobish
>
Armin Hammer Productions
>
San Francisco
>
_______________________________________________
>
applescript-users mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/applescript-users