MACSCRPT Archives

April 2013

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Content-Type:
text/plain; charset="us-ascii"
Date:
Mon, 8 Apr 2013 18:05:41 +0000
Reply-To:
Macintosh Scripting Systems <[log in to unmask]>
Subject:
Content-Transfer-Encoding:
quoted-printable
Message-ID:
MIME-Version:
1.0
Sender:
Macintosh Scripting Systems <[log in to unmask]>
From:
Mark Lively <[log in to unmask]>
Parts/Attachments:
text/plain (22 lines)
Since there has been some activity I want to share this warning.

In older version of Applescript (before 10.7)

set n to "4.1"
set n to -n

would yield -4.1

Under 10.7 and 10.8 it yields -4

It seems the default coercion is to integer rather than number.

bizarrely, 

set n to -1 * n 

yields -4.1

-Mark
Fixed my code, Documented my fixes, Filed a bug report.

ATOM RSS1 RSS2