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

iWork. Bug or not bug


  • Subject: iWork. Bug or not bug
  • From: KOENIG Yvan <email@hidden>
  • Date: Tue, 8 Jun 2010 11:42:39 +0200

Hello.
The three iWork applications behave the same so I will describe the 'problem' for Numbers.

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, 
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

As AppleWorks behave this way since the delivery of AppleScript, I was not really surprised when I discovered that Numbers behave this way.
But, yesterdays I was said that this behaviour must be seen as a Numbers bug.
Apps are supposed to be able to deal by themselves with the real numbers issued by AppleScript (which uses always the decimal period).

I wish to know your advice.

Is it a bug or is it a feature ?

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 tNumbers as the 'French' real 0,5

Thanks in advance.

Yvan KOENIG (VALLAURIS, France) mardi 8 juin 2010 10:40:00



 _______________________________________________
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

  • Follow-Ups:
    • Re: iWork. Bug or not bug
      • From: "Mark J. Reed" <email@hidden>
  • Prev by Date: How do I download the archieves.
  • Next by Date: Re: iWork. Bug or not bug
  • Previous by thread: How do I download the archieves.
  • Next by thread: Re: iWork. Bug or not bug
  • Index(es):
    • Date
    • Thread