• 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: applescript-users digest, Vol 2 #880 - 16 msgs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: applescript-users digest, Vol 2 #880 - 16 msgs


  • Subject: Re: applescript-users digest, Vol 2 #880 - 16 msgs
  • From: "John McElwain" <email@hidden>
  • Date: Fri, 20 Jul 2001 12:38:29 -0600

>>How would one select any cd (not by name) without selecting other disks or
folders?
>
> Try something like this:
>
> every disk whose free space = 0 ,
> and capacity > 6.5E+8 ,
> and capacity < 7.0E+8
>
> The "free space" expression includes any read-only disks,the lower capacity
> limit assumes that the CD is more or less full, and the upper limit should
ignore DVDs and such.
>
> Does anyone happen to know what the actual maximum number of bytes an HFS (or
HFS+) CD can hold?

The problem with the above approach is that a CD volume could have a little
as 14 Mb of capacity.

Akua's Sweets Volume Info Record contains a property called vol device kind.
There must be a more elegant way to approach this, but the following seems
to work...

set DiskVolumeInfo to disk volume info
set CD_volumes to {}
repeat with eachVol in DiskVolumeInfo
if vol device kind of eachVol is cd volume then ,
copy name of eachVol to the end of CD_volumes
end repeat

Cheers


  • Follow-Ups:
    • Re: select any cd (WAS:applescript-users digest, Vol 2 #880 - 16 msgs)
      • From: David Reynolds <email@hidden>
  • Prev by Date: How do I make applescript wait for application to finish before continuing?
  • Next by Date: Re: Select CD
  • Previous by thread: RE: Scripting Addition for PostgreSQL?
  • Next by thread: Re: select any cd (WAS:applescript-users digest, Vol 2 #880 - 16 msgs)
  • Index(es):
    • Date
    • Thread