• 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: iWork. Bug or not bug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iWork. Bug or not bug


  • Subject: Re: iWork. Bug or not bug
  • From: KOENIG Yvan <email@hidden>
  • Date: Tue, 8 Jun 2010 15:31:30 +0200


Le 8 juin 2010 à 13:27, Mark J. Reed a écrit :


How could this be considered anything but a bug?  It's a bug with a
workaround, but a bug nonetheless.

On Tuesday, June 8, 2010, KOENIG Yvan <email@hidden> wrote:

Thanks.

So I filed this report in three times.

I was a bit nervous when the 'shouted in red' that I can't use a 'send back button' which I never hit.
They just urged me to link my machine description which I did immediately.

Your tracking number for this issue is Bug ID# 8070596. 


Summary:

Localized Numbers '09 unable to use reals passed by AppleScript

Steps to Reproduce:

Open a blank spreadsheet then run this simple script.

--[SCRIPT]
set aReal to 1 / 2

tell application "Numbers" to tell document 1 to tell sheet 1 to tell table 1
set value of cell "C3" to aReal
set value of cell "D3" to "= C3 * 2"
set value of cell "C4" to aReal as text
set value of cell "D4" to "= C4 * 2"
end tell

--[/SCRIPT]

On a system using the period as decimal delimiter,
you will get the value 0.5 in cells C3 and D3 and the value 1 in cells D3 and D4.

You are lucky guys.

On systems using the comma as decimal delimiter (French setting for instance), 
we get 0.5 (yes a period) in C3, the infamous red triangle in cell D3, 0,5 (yes, a comma) in cell C4 and 1 in cell D4.

The red triangle is a logical result because the app is unable to apply the multiplication operator to the value 0.5

Of course, no need to explain that when it coerce a real to a text object,
AppleScript uses the local decimal delimiter 
so that the 'English' real 0.5 becomes the 'French' string "0,5" 
which is deciphered by Numbers as the 'French' real 0,5

Expected Results:

If I make no error, Numbers would be able to treat correctly reals passed by AppleScript without the text coercion in every localized versions.

So I assumed that I would get the value 1 in cells D3 and D3 as I get on an English system..

Actual Results:

The passed real keep its decimal period so, it's deciphered as a string when whe are supposed to receive a number.

Regression:

My workaround (used since ClarisWorks 4, ClarisWorks/AppleWorks 5, AppleWorks 6 and Numbers '09) is to coerce the real as a string before passing it to Numbers.

In fact as the describe behaviour is striking since 1995, I assumed that it was a feature.
But today, two AppleScript gurus told me that I was wrong and that it's definitely a bug.
So, I hope that you will be able to kill this 15 years old Apple bug.

I wrote about Numbers but of course, the problem is the same in Keynote and Pages.



(PS 1) Maybe this report will duplicate.
It seems that something failed when I sent it two minutes ago.

(PS 2) I attached my system description but the problem strikes on every machine when the system uses the decimal comma !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

(PS 3) You are funny guys.
It was you which urged me to attach my system description when I posted my report.
No need to shout in red when YOU fail !!!!!!!!!!!!!!

Yvan KOENIG (VALLAURIS, France) mardi 8 juin 2010 15:31:01



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >iWork. Bug or not bug (From: KOENIG Yvan <email@hidden>)
 >Re: iWork. Bug or not bug (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: iWork. Bug or not bug
  • Next by Date: Possible to Get Property List Editor Edit Plist File?
  • Previous by thread: Re: iWork. Bug or not bug
  • Next by thread: Possible to Get Property List Editor Edit Plist File?
  • Index(es):
    • Date
    • Thread