Volume unmount doesn't work in Tiger/ did in 10.3.6

Hello everybody…I’m new to the forum.

I used the below script in 10.3.6 to eject my backup hard drive at startup. However, in Tiger it doesn’t seem to work.

I’ve saved it as an application and selected it in the Login Items in the Accounts pref pane. I’ve recompiled it as well.

I’ve run the script manually, both by simply clicking on it as well as pressing the “run” button in Script Editor, but it does not eject the disk.

It does not seem to generate any errors when run from the Script Editor. The Result pane is blank and the Event Log simply displays a duplicate of the script. No errors or any other message. The same happens with my other backup drive called Backup Drive.

If I reboot into 10.3.6, all is fine.

tell application “Finder”
eject disk “Spare”
end tell

Perhaps some of you guys could test it for me…?

Dave

Model: DP500 Gigabit Ethernet
AppleScript: 1.1
Browser: Safari 412.2
Operating System: Mac OS X (10.4)

It works fine for me.

Edit: On OS X 10.4.2

I’m using 10.4.2 and I have the exact same problem with the exact same script (except for the hard disk name, of course). It worked fine in 10.3.9 but now all of a sudden it doesn’t work at all in Tiger. No error messages, either.

The disk can be successfully dismounted using either Disk Utility or dragging its icon to the trash, but I need a scriptable solution.

Why would the eject command suddenly stop working in Tiger?

works fine for me on 10.4.2

Yes, delving further…

Both my Spare and Backup Drives, although mounted, will not eject when using the Applescript. Dismounting using Disk Utility or dragging to the trash works fine.

However, I noticed that if I highlight either of the drives I want to dismount, that the Eject command under the file menu is greyed out. This command is usable however, if I reboot from 10.3.6, just like the Applescript works as well.

So…does this mean it’s not an Applescript problem, but instead has something to do with the way the disk is mounted under 10.4.2, since the File->Eject command is greyed out?

David

HI Jaques,

I’m not sure what you mean.

David