• 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: Yosemite appears to have broken shell script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Yosemite appears to have broken shell script (From: Robert Poland <email@hidden>)
 >Re: Yosemite appears to have broken shell script (From: Shane Stanley <email@hidden>)
 >Re: Yosemite appears to have broken shell script (From: Robert Poland <email@hidden>)
 >Re: Yosemite appears to have broken shell script (From: Shane Stanley <email@hidden>)
 >Re: Yosemite appears to have broken shell script (From: Shane Stanley <email@hidden>)
 >Re: Yosemite appears to have broken shell script (From: Robert Poland <email@hidden>)
 >Re: Yosemite appears to have broken shell script (From: Emmanuel LEVY <email@hidden>)
 >Re: Yosemite appears to have broken shell script (From: Robert Poland <email@hidden>)
 >Re: Yosemite appears to have broken shell script (From: Christopher Stone <email@hidden>)
 >Re: Yosemite appears to have broken shell script (From: Robert Poland <email@hidden>)

  • Prev by Date: Re: Yosemite Mail issue
  • Next by Date: move mailbox?
  • Previous by thread: Re: Yosemite appears to have broken shell script
  • Next by thread: Re: Yosemite appears to have broken shell script
  • Index(es):
    • Date
    • Thread