Re: Detecting when a CD has mounted on the desktop.
Re: Detecting when a CD has mounted on the desktop.
- Subject: Re: Detecting when a CD has mounted on the desktop.
- From: "Christopher C. Stone" <email@hidden>
- Date: Mon, 26 Mar 2001 06:37:40 -0600
At 22:52 -0500 03/25/2001, Ken Dobson wrote:
>
> Does anyone know of a way to detect when a CD has been mounted on the
>
> desktop? I'm putting together a script that compares bytes between
>
> files on a CD and files on disc, but I need a way to detect when the
>
> CD has been inserted.
>
>
This is a start:
Good place for a whose clause:
tell application "Finder"
set {cdName, theCD} to {name of disks whose ejectable is true, disks whose ejectable is true}
if cdName is not "" then
beep
end if
end tell
This presupposes that you're only using on ejectable device - the CD drive.
--
Best Regards,
Christopher Stone
______________________________
StoneWorks Computer Consulting
email@hidden