Mime-Version: |
1.0 (Apple Message framework v749.3) |
Content-Type: |
text/plain; charset=US-ASCII; delsp=yes; format=flowed |
Date: |
Fri, 19 May 2006 09:23:48 -0600 |
Reply-To: |
|
Subject: |
|
From: |
|
In-Reply-To: |
|
Content-Transfer-Encoding: |
7bit |
Sender: |
|
Parts/Attachments: |
|
|
I can't check right now but date calculations may be dependent on the
date format selected in the International Preferences?
On May 19, 2006, at 8:19 AM, Duane L. Mitchell wrote:
> Hello,
>
> After upgrading to Intel Macs, iMac and MacBook, a script has stopped
> working. What doesn't work anymore is some date math where the seconds
> between two dates is converted to a string. The resulting number is
> always
> in exponential format: 1.3528367587E+17 or something like that. I
> need a
> string to paste into a Word doc.
>
> Here's the script:
>
> property pReferenceDate : date "Wednesday, January 1, 2003 12:00:01
> AM"
> set vDocNumber to ((current date) - pReferenceDate) as inches as
> string
> display dialog "The number is: " & vDocNumber
>
> The "as inches as string" is my latest attempt at coercing the
> number to a
> string.
>
> I don't have an Intel Mac but have asked someone who does to run
> the above
> script. It works as it should. I'm puzzled as to why these two
> particular
> Intel Macs are having this problem.
>
> I'd welcome any suggestions or comments. Thanks.
>
> -Duane Mitchell
|
|
|