• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Mounting and Dismounting local or server volumes on Tiger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Mounting and Dismounting local or server volumes on Tiger
      • From: "John C. Welch" <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>)

  • Prev by Date: Re: URL Access scripting in Tiger launches Classic
  • Next by Date: Re: Intro from newbie [TAN]
  • Previous by thread: Re: Mounting and Dismounting local or server volumes on Tiger
  • Next by thread: Re: Mounting and Dismounting local or server volumes on Tiger
  • Index(es):
    • Date
    • Thread