Scripting Additions Guide

CHAPTER 2
Scripting Addition Commands
32 Command Definitions
List Disks 2
The List Disks command returns a list containing the names of every mounted
volume, including CD-ROMs, floppy disks, AppleShare volumes, and so on.
List Disks is one of several commands provided by the File Commands
scripting addition.
SYNTAX
list disks
RESULT
The result is a list of strings.
EXAMPLE
list disks
--result: {"My Disk", "Our Server", "Joe's Floppy"}
ERROR
Error
number Error message
–35 Disk <name> wasn't found.
–50 Parameter error.
–108 Out of memory.
–1703 Some data was the wrong type.
–1704 Some parameter was invalid.
–1705 Operation involving a list item failed.
–1719 Can't get <reference>. Invalid index.