Re: applescript-users digest, Vol 2 #880 - 16 msgs
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