[X4U] Applescript to remove spare drive

Simon Forster simon-lists at ldml.com
Thu Jul 7 08:36:43 PDT 2005


On 7 Jul 2005, at 16:25, Crandon David wrote:

> tell application "Finder"
>     eject disk "Spare"
> end tell
>
> ----------------
>
> try
>     tell application "Finder" to eject "Spare"
> end try

The second one should be:

tell application "Finder" to eject disk "Spare"

 From the Finder dictionary:

eject v : Eject the specified disk(s)
eject [reference] : the disk(s) to eject

Looks like it should work in 10.4 - which is where I checked the  
dictionary.

Simon Forster
_____________________________________________________
  LDML Ltd, 62 Pall Mall, London, SW1Y 5HZ, UK
  Tel: +44 (0)70 9230 5244   Fax: +44 (0)70 9230 5247
_____________________________________________________



More information about the X4U mailing list