MACSCRPT Archives

April 2013

MACSCRPT@LISTSERV.DARTMOUTH.EDU

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

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

Print Reply
Subject:
From:
Mark Lively <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Mon, 8 Apr 2013 18:05:41 +0000
Content-Type:
text/plain
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