• 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: Detecting when a CD has mounted on the desktop.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Detecting when a CD has mounted on the desktop. (From: Ken Dobson <email@hidden>)

  • Prev by Date: Re: Using 'Repeat'
  • Next by Date: Re: Re: CGIs with OSX
  • Previous by thread: Re: Detecting when a CD has mounted on the desktop.
  • Next by thread: hex-encoding strings in Applescript
  • Index(es):
    • Date
    • Thread