Re: Mounting and Dismounting local or server volumes on Tiger
Re: Mounting and Dismounting local or server volumes on Tiger
- Subject: Re: Mounting and Dismounting local or server volumes on Tiger
- From: "John C. Welch" <email@hidden>
- Date: Mon, 17 Oct 2005 21:36:31 -0500
- Thread-topic: Mounting and Dismounting local or server volumes on Tiger
On 10/17/05 21:18, "Paul Berkowitz" <email@hidden> wrote:
>> Considering that the output of list disks in SA is much cleaner and easier
>> to work with than the output of the Finder, I think it's blind luck that you
>> don't see more of that kind of thing than you do.
>
> Nonsense. 'list disks' (a scripting addition possibly originally 3rd-party
> incorporated into Standard Additions in OS 8.1) happens to return just the
> names of of the disks, rather than the alias format. It couldn't ever return
> the Finder reference since it has nothing to do with the Finder. There's no
> Standard Addition (info for, path to) etc. that can MAKE things or even act
> on things in the file system. Only the Finder (and now System Events) can do
> that. The Finder is a scriptable app that requires you behave yourself and
> use proper Finder references, and that's how it should be. It's great that
> it coerces aliases to Finder objects - there's a 1-to-1 relationship. Some
> other apps will allow alias-type paths, but there can be inconsistencies. at
> least with aliases there will be an error if it doesn't exist. I agree with
> Dave that strings probably shouldn't coerce to Finder objects since there
> are so few other situations where that can work. But since they do, you can
> make use of it.
That's ridiculous Paul. It's not some third party gimcracky giving me that
list. It's Standard Additions. If it should be giving me a better form, then
go yell at the standard additions people. But if Standard Additions returns
nothing but text for list disks, then it's absolutely reasonable to expect
the finder to be able to use the results of List Disks to eject said disks.
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.
--
There is no type of human endeavor where it is so important that the leader
understands all phases of his job as that of the profession of arms.
- Major General James C. Fry
_______________________________________________
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