Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mounting and Dismounting local or server volumes on Tiger



On Oct 17, 2005, at 7:36 PM, John C. Welch wrote:
...Until either the output of list disks changes, or the function is eliminated
from Standard additions all together, then scripters should be able to get a
list of disks, and barring reason why they cannot be ejected, eject them.

The "Finder" way to get a list of disks is "every disk" or "disks". You can get the same easy-to-read output that "list disks" would give you, by writing "name of every disk" (or "name of disks"...short, but not quite grammatical).


As I said earlier, I can't break eject "diskname" now that it works, I only wish I could. "List disks" is doing what it means to do, and it can't use Finder's terminology.

If a scripter really wants to get a disk name from "list disks" and then use it with Finder, I merely suggest being explicit about it:

	set foo to item 3 of (list disks)
	tell application "Finder"
		eject disk foo    -- rather than  eject foo
	end tell

Cheers,

--Dave

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden
References: 
 >Re: Mounting and Dismounting local or server volumes on Tiger (From: "John C. Welch" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.