Re: Droplet for CD
Re: Droplet for CD
- Subject: Re: Droplet for CD
- From: Christopher Nebel <email@hidden>
- Date: Wed, 19 Sep 2001 12:25:07 -0700
On Wednesday, September 19, 2001, at 11:07 AM, Sprague, Graham wrote:
Yes that works but the description contains more than just "CD-ROM
disc" so
I changed "is" to "contains" and it works. But what a kludge! There
must be
a better way to do this with built-in Scripting additions. I doubt that
Apple means for us to use the description field to identify devices. I
just
don't under stand why the info for the item has no data about it's type
of
media. Clearly the system knows what type of media or it could not
access it
properly. I wish there was an answer. Every time I use applescript I
feel
like I'm using duct tape.
The exact type of a disk is surprisingly difficult to get at, even from
compiled C code. Don't blame AppleScript for this one. The thing is,
you're generally not supposed to care exactly what type of disk you've
got. Disks contain files and folders -- what more do you need to know?
Restricting the type of disk tends to lead to pain and anguish down the
road when standards change (e.g., people start moving to DVD-R to store
their stuff -- oops, can't read those, because we require a CD! Try to
use a CD mounted on a server? Oops, that won't work either, because we
see it as a shared disk, not a CD!) Maybe if you explained why you need
to know that it's specifically a CD...
--Chris Nebel
AppleScript Engineering