• 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: Convert long number to string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Convert long number to string


  • Subject: Re: Convert long number to string
  • From: Gnarlodious <email@hidden>
  • Date: Sat, 17 Apr 2004 16:08:29 -0600

Entity Martin Orpen spoke thus:

> set realNumber to exponent as inches as string
Thanks!
That is a mighty strange hack, but it'll do (shorter than Paul's solution).
These have the same effect:

set realNumber to exponent as miles as string
set realNumber to exponent as centimeters as string
set realNumber to exponent as liters as string
(for a goof, write "litres" and watch what happens!)

So I was tempted to say:

set realNumber to exponent as seconds as string

... which fails miserably. Seems a little rotund since my script calculates
seconds of the UNIX epoch:

set x to (do shell script "date +%s") as number
x - x mod 604800 as meters as string -->1081987200 (on 2004/4/17)

Server X rotates logfiles weekly on Thursday AM and inserts a time variable
into the name.
The variable is the number of seconds since 1/1/1970 until the midnight UTC
prior to the logfile rotation.


And good luck to your daughter and her math, she has a bid advantage with a
tutor like you!

-- Gnarlie's Applescript page
http://www.Gnarlodious.com/OSX/AppleScript/AppleScript.html
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Convert long number to string
      • From: Graff <email@hidden>
References: 
 >Re: Convert long number to string (From: Martin Orpen <email@hidden>)

  • Prev by Date: Re: Convert long number to string
  • Next by Date: Re: Convert long number to string
  • Previous by thread: Re: Convert long number to string
  • Next by thread: Re: Convert long number to string
  • Index(es):
    • Date
    • Thread