Re: Yosemite appears to have broken shell script
Re: Yosemite appears to have broken shell script
- Subject: Re: Yosemite appears to have broken shell script
- From: Shane Stanley <email@hidden>
- Date: Thu, 30 Oct 2014 09:40:09 +1100
On 30 Oct 2014, at 1:12 am, Robert Poland <email@hidden> wrote:
>
> Why would a set bounds command return a pixel result to the tenth of a pixel?
As Chris pointed out, they're not -- they're returned as reals. I would have thought most scripters would understand that the difference between 1 and 1.0 is that the latter is a real.
They are also not pixels, they are points. You can't change the number of physical pixels on your screen, but you can change the width and height as returned by the various bounds commands. And retina displays have multiple pixels for every point. Moreover, on a retina display you can also have something aligned to a pixel but its coordinate can be a fraction of a point.
So the simple answer is that are returned as reals is because that's precisely what they are. No need to stamp your feet.
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
_______________________________________________
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