Re: set VolumeList
Re: set VolumeList
- Subject: Re: set VolumeList
- From: John Baltutis <email@hidden>
- Date: Mon, 17 Jan 2005 21:38:47 -0800
On 01/17/05, Robert Poland <email@hidden> wrote:
>
> Comments,
>
> set VolumeList to do shell script "ls /volumes"
> VolumeList
> --> "iMac HD"
>
> set VolumeList to list disks
> VolumeList
> --> {"iMac HD", "Network"}
Better yet with multiple partitions: ls /volumes gives you a string which
lists each mounted volume, skipping Network:
do shell script "ls /volumes"
->"DMGs
Documents
Finances ZIP
OS 9
OS 9 Classic
Panther Clone
Panther Pro
Panther Pure"
whereas: list disks gives you a list with a separate entry for each mounted
disk, including Network:
list disks
->{"Panther Pro", "Panther Clone", "DMGs", "OS 9", "Documents", "Panther
Pure", "OS 9 Classic", "Finances ZIP", "Network"}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden