RE: Droplet for CD
RE: Droplet for CD
- Subject: RE: Droplet for CD
- From: "Sprague, Graham" <email@hidden>
- Date: Wed, 19 Sep 2001 16:46:18 -0400
Chris,
I am setting up a really simple script to catalog a CD to a Portfolio
Catalog. I plan to use the catalog to keep track of items stored on the CDs.
This will make it easier to search for items accross multiple CDs.
My reason for limiting the droplet to CDs is that I don't want people adding
the folder the used to prepare the files for burning, single files, or
shared disks, etc... I only want them to add CDs. For the forseeable future
we will be using CD-R as our archive media. Until DVD is the standard then
I'll make the change to DVD. So for now it's just CDs.
Hey, I'm glad for all the things that AppleScript can do. I'm just anoyed
with the kludge needed to get there. I just thought this must be simple. How
can AppleScript not be able to tell me what kind of disk I am using? It
seems silly and disjointed when you take into account real world problems.
Maybe I'm just not experience enough with AS to know what I'm talking about.
Thanks for the time,
Graham
>
----------
>
From: Christopher Nebel
>
Sent: Wednesday, September 19, 2001 3:25 PM
>
To: Sprague, Graham
>
Cc: Applescript Users; 'Ron Bishop'
>
Subject: Re: Droplet for CD
>
>
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