Re: Droplet for disks with duplicate names
Re: Droplet for disks with duplicate names
- Subject: Re: Droplet for disks with duplicate names
- From: Gnarlodious <email@hidden>
- Date: Thu, 22 Sep 2005 15:07:15 -0600
It's a PITA, but yu have to do it like this:
tell application "Finder"
disks -- a list of all mounted disks
files of disk 7 -- You will have to determine which number your
identically named disk is
duplicate file "SomeFile.txt" to disk 7
eject disk 7
end tell
Anyone know an easier way?
-- Gnarlie
Entity Luther Fuller spoke thus:
> I've been meaning to ask a question along these lines for a few
> weeks, but just didn't get around to it.
> I too ran into a problem with multiple mounted disks having the same
> name. A search of Apple's web site produced a document, dated 1999,
> showing exactly how to solve this problem using disk ID numbers. The
> solution was to identify the disk in Finder by ID number, then eject
> the disk by simply telling the Finder to 'eject disk ID idNr'. This
> solution no longer works, however.
> The problem with doing this in the current OS (10.4) is that:
> 1. System Events understands what an ID number is and lets you
> identify a disk by ID, but has no 'eject' command.
> 2. Finder has an 'eject' command, but no longer recognizes ID numbers.
> Does anyone know when this change was made? And, more importantly, why?
> A solution, which I have not yet tried, is to use the Unix name of
> identically named disks. For example, if you have 3 ejectable disks
> mounted, all named 'untitled', Unix will identify them as 'untitled',
> 'untitled 1' and 'untitled 2'. You can unmount the correct disk by
> using the unix name, provided you escape the space character in the
> posix path ('untitled\ 1' for example).
> _______________________________________________
_______________________________________________
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