Re: Droplet for CD
Re: Droplet for CD
- Subject: Re: Droplet for CD
- From: Paul Skinner <email@hidden>
- Date: Wed, 19 Sep 2001 13:12:38 -0400
on 9/19/01 10:57 AM, Sprague, Graham wrote:
>
I need to create a droplet that will only accept a CD. Does anyone know how
>
to do this. I tried the following to no avail...
>
>
Any help would be great.
>
>
Thanks,
>
Graham
Not fool-proof but vanilla.
--begin script
set u to alias "Audio CD 1:"
tell application "Finder"
try
tell disk u
if kind is "disk" and ejectable is true and size is less than
657 and capacity is less than 657 and free space is 0.0 then set CDTest to
"Probably a CD"
end tell
on error
set CDTest to "Probably not a CD"
end try
end tell
--end script
--
Paul Skinner
"A facility for quotation covers the absence of original thought." --
Dorothy Leigh Sayers