• 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: "Francois Houle" <email@hidden>
  • Date: Thu, 24 Mar 2005 15:24:05 -0500
  • Thread-topic: Issue with AS variable in OS 10.2

That worked beautifully ! Thanks alot ! Your help is much appreciated !


Frank


-----Original Message-----
From: applescript-users-bounces+francois.houle=email@hidden
[mailto:applescript-users-bounces+francois.houle=email@hidden.c
om] On Behalf Of Paul Berkowitz
Sent: Thursday, March 24, 2005 12:20 PM
To: AppleScript-Users
Subject: Re: Issue with AS variable in OS 10.2

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:
40mcgill.ca

This email sent to email@hidden
 _______________________________________________
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

  • Prev by Date: Modification date checker
  • Next by Date: Re: Get download folder
  • Previous by thread: Re: Issue with AS variable in OS 10.2
  • Next by thread: Get download folder
  • Index(es):
    • Date
    • Thread