• 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
Does "rounding" work in OS 9.2.1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Folder Actions Memory Q.
  • Next by Date: Parsing HTML
  • Previous by thread: Tao of Applescript scripts found - Thank You!
  • Next by thread: RE: Does "rounding" work in OS 9.2.1
  • Index(es):
    • Date
    • Thread