• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: set VolumeList
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: multipage TIFFs
  • Next by Date: Re: Call Objective-C methods from any script
  • Previous by thread: Re: set VolumeList
  • Next by thread: one odd character
  • Index(es):
    • Date
    • Thread