Re: Issue with AS variable in OS 10.2
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