• 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: Adobe Photoshop Bounds of a layer?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adobe Photoshop Bounds of a layer?


  • Subject: Re: Adobe Photoshop Bounds of a layer?
  • From: Shane Stanley <email@hidden>
  • Date: Thu, 04 Sep 2014 22:13:37 +1000

On 4 Sep 2014, at 9:43 pm, koenig.yvan <email@hidden> wrote:

> Martin's answer seems to be clear.

I think the difference is that Martin was using 1-based numbering, whereas the OP was using zero-based numbering (I'm not quite sure why).

> bounds is {Left, Top, Right, Bottom}
> which is the definition used by most applications (including the Apple ones which I'm aware of)

Up to a point. QuarkXPress uses {Top, Left, Bottom, Right}, as does InDesign mostly (but not always). It stems from the fact that something in QuickDraw used the same scheme.

And then there are apps where the origin is the bottom-left (Acrobat and Illustrator), so calculating the height means reversing the two Y values.

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


  • Follow-Ups:
    • Re: Adobe Photoshop Bounds of a layer?
      • From: "koenig.yvan" <email@hidden>
References: 
 >Adobe Photoshop Bounds of a layer? (From: Dave <email@hidden>)
 >Re: Adobe Photoshop Bounds of a layer? (From: Martin Orpen <email@hidden>)
 >Re: Adobe Photoshop Bounds of a layer? (From: Dave <email@hidden>)
 >Re: Adobe Photoshop Bounds of a layer? (From: "koenig.yvan" <email@hidden>)

  • Prev by Date: Re: Adobe Photoshop Bounds of a layer?
  • Next by Date: Numbers and AppleScript
  • Previous by thread: Re: Adobe Photoshop Bounds of a layer?
  • Next by thread: Re: Adobe Photoshop Bounds of a layer?
  • Index(es):
    • Date
    • Thread