• 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: Tue, 18 Oct 2005 19:46:45 -0700

On Oct 17, 2005, at 7:36 PM, John C. Welch wrote:
...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.

The "Finder" way to get a list of disks is "every disk" or "disks". You can get the same easy-to-read output that "list disks" would give you, by writing "name of every disk" (or "name of disks"...short, but not quite grammatical).


As I said earlier, I can't break eject "diskname" now that it works, I only wish I could. "List disks" is doing what it means to do, and it can't use Finder's terminology.

If a scripter really wants to get a disk name from "list disks" and then use it with Finder, I merely suggest being explicit about it:

	set foo to item 3 of (list disks)
	tell application "Finder"
		eject disk foo    -- rather than  eject foo
	end tell

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: 
 >Re: Mounting and Dismounting local or server volumes on Tiger (From: "John C. Welch" <email@hidden>)

  • Prev by Date: Re: Excel Scripting
  • Next by Date: Re: Mounting and Dismounting local or server volumes on Tiger
  • 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