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 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:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden
References: 
 >Mounting and Dismounting local or server volumes on Tiger (From: Jacques Ravanat <email@hidden>)
 >Re: Mounting and Dismounting local or server volumes on Tiger (From: Michael Schmidt <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.