Does "rounding" work in OS 9.2.1
Does "rounding" work in OS 9.2.1
- Subject: Does "rounding" work in OS 9.2.1
- From: <email@hidden>
- Date: Wed, 31 Oct 2001 12:11:48 -0600
I'm putting together a little script to add selection sizes in the Finder. I
just need a rounded integer for the size. I can't get the rounding script
addition to work. It is in there that I checked. This compiles fine.
set theSizeTotal to 0
tell application "Finder"
activate
set theSelections to every item of selection
repeat with theItem in theSelections
set itemSize to size of theItem
set itemSize to (itemSize / 1024 / 1024)
set theSizeTotal to (theSizeTotal + itemSize)
end repeat
round theSizeTotal rounding as taught in school
display dialog theSizeTotal - I would like this to end up an integer
end tell
Anyone? Rounding, anyone?
Thanks,
Ron Bishop
The Kansas City Star
Macintosh Systems Administrator