Re: Count selected pixcel with Photoscripter
Re: Count selected pixcel with Photoscripter
- Subject: Re: Count selected pixcel with Photoscripter
- From: What does not kill you only makes you stronger <email@hidden>
- Date: Thu, 16 Nov 2000 21:27:11 -0600
on 11/16/00 8:32 PM, email@hidden wrote:
>
> tell application "Adobe. Photoshop. 6.0"
>
> tell document 1
>
> set kPixelWidthHeight to {width as real, height as real} --in pixels
>
> end tell
>
> end tell
>
>
I don't have v6.0 yet so I can't test, but I'm curious why you chose "as
>
real" instead of "as integer"? Won't pixels always be an integer by default?
Yes, you are right, but I did not want to mess with the default result.
Note the following:
set kPixelWidthHeight to {width, height}
--returns {pixels 504.0, pixels 360.0}