I made a lot of tests to build the script named above.
Clicking at 1234 when an object is at 1234.56 fails to select it.
So, it's clear that the app make the difference between entire values and decimal ones.
What may fool most of us is that the GUI doesn't allow us to set a decimal value so, every body think that only integer values are accepted.
Just for see, create a new blank document.
Insert a square shape whose width is 100 points.
Apply this huge script :
--
tell application "Pages" to tell document 1 to tell first graphic
get properties
set old_width to get width
set width to 123.678
set new_width to get width
set horizontal position to 123.678
set new_Hpos to get horizontal position
end tell
display dialog "" & old_width & return & new_width & return & new_Hpos
--
The shape's width and the horizontal position will become : 123.678001403809
which clearly show that the point is no less breakable than atoms.
If you go to Inspector > Metrics, you will see 124 which prove that the Metrics tool really round.
I guess that as a result of many operations with erroneous scripts something was weird in my system when I got the result described in my response to Jerrold.
Yvan KOENIG (VALLAURIS, France) samedi 5 mars 2011 13:03:19