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: Dave Lyons <email@hidden>
- Date: Mon, 17 Oct 2005 17:57:15 -0700
On Oct 17, 2005, at 5:13 AM, Michael Schmidt wrote:
Question 1:
tell app "Finder"
eject "G3400-X"
end tell
I'm always surprised when I see stuff like that work: This is asking
Finder to eject a string. True, Finder manages to figure out what
you mean, but it's better to write:
eject disk "G3400-X"
...where disk "G3400-X" is a proper reference to an object in the
Finder's model of the world.
properties of disk "G3400-X" -- works
capacity of disk "G3400-X" -- works
properties of "G3400-X" -- fails
capacity of "G3400-X" -- fails
Speaking as the maintainer of Finder X scripting...If I could go back
in time and never allow strings to be *implicitly* turned into Finder
objects, I would certainly do it. In the real world, of course, it
has to be supported.
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:
This email sent to email@hidden