• 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: Issue with AS variable in OS 10.2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Issue with AS variable in OS 10.2


  • Subject: Re: Issue with AS variable in OS 10.2
  • From: Paul Berkowitz <email@hidden>
  • Date: Thu, 24 Mar 2005 09:19:50 -0800

On 3/24/05 8:54 AM, "Francois Houle" <email@hidden> wrote:

> Ok for some reason I re-wrote the script entirely and now it works... Go
> figure...
> A follow-up question on this though...
> Since the final output is in kb (added the -k option to the du command do to
> so), I then do this:
> set folder_sizemb to (folder_size / 1024) which works real well... except for
> the fact the I'd like it to output only one decimal after the period... Anyone
> have an idea how to "edit" this result ?
>
> Real, thanks to everyone who helps me out, your all great !

If you don't care if it rounds down every time (even when over x.x5...) then
this is easiest and fastest.

    set folder_sizemb to ((folder_size * 10) div 1024) / 10

--
Paul Berkowitz


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >RE: Issue with AS variable in OS 10.2 (From: "Francois Houle" <email@hidden>)

  • Prev by Date: Re: This Used To Work
  • Next by Date: Re: Calling handlers in other scripts inside AS application
  • Previous by thread: RE: Issue with AS variable in OS 10.2
  • Next by thread: RE: Issue with AS variable in OS 10.2
  • Index(es):
    • Date
    • Thread