Capacity?

: tell application “Finder” – set
: disk_table to “” repeat with one_disk in
: disks set disk_name to contents of one_disk set
: disk_capacity to capacity of (contents of one_disk)
: set disk_table to disk_table & disk_name &
: " " & disk_capacity & return end
: repeat end tell (* output Codex 2.096529408E+9
: Operator 7.86333696E+8 Programs 2.62119424E+9
: Pristine 5.24214272E+8 Shared 6.95192064E+8 Curio
: 2.62119424E+9 ) tell application
: “Finder” set name_list to (name of every
: disk whose capacity is less than 695192064) – less
: than the capacity of disk Shared end tell (

: output {“Codex”, “Operator”} *)
: Oops. It should be {“Pristine”} Or:
: there is something I don’t understand. What is it?
It’s a bug in the ‘whose’ filter. It gives erratic results with numerical values such as capacities, sizes, and dates. You’ll have to check each disk separately in a repeat loop.
NG

" It’s a bug in the ‘whose’ filter. It gives erratic results with numerical values such as capacities, sizes, and dates. You’ll have to check each disk separately in a repeat loop. "
Thanks. I was hoping it wasn’t that, as I dislike writing code to correct for bugs in things that should be simple.