• 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: Droplet for CD
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Droplet for CD
      • From: Paul Skinner <email@hidden>
  • Prev by Date: Re: Is beep a backdoor?
  • Next by Date: Re: Droplet for CD
  • Previous by thread: RE: Droplet for CD
  • Next by thread: Re: Droplet for CD
  • Index(es):
    • Date
    • Thread