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.