• 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: Akua Sweets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Akua Sweets


  • Subject: Re: Akua Sweets
  • From: Peter Baxter <email@hidden>
  • Date: Thu, 2 Aug 2007 07:27:21 +1000


On 02/08/2007, at 6:58 AM, Peter Baxter wrote:

Most of the data you are looking for can be gained simply by asking for it:

set selectedFile to (choose file)
tell application "Image Events"
set openedFile to open (selectedFile as alias)
set dimensionlist to the dimensions of the openedFile
set filewidth to the first item of the dimensionlist
set fileheight to the second item of the dimensionlist
set itemProfile to the profile of the openedFile
set fileresolution to the resolution of the openedFile
end tell
fileresolution --> or whatever else you need


On 01/08/2007, at 11:51 PM, Fleisher, Ken wrote:

1) width and height
2) color mode (RGB, CMYK, etc.)
3) if it's a JPEG, I need the compression level if it's in the header
4) if it has an embedded ICC profile and if so, which one
5) if it has alpha channels and if so, how many

Peter Baxter
email@hidden

Brown Penny

I whispered, ‘I am too young,’
And then, ‘I am old enough’;
Wherefore I threw a penny
To find out if I might love.
‘Go and love, go and love, young man,
If the lady be young and fair.’
Ah, penny, brown penny, brown penny,
I am looped in the loops of her hair.

O love is the crooked thing,
There is nobody wise enough
To find out all that is in it,
For he would be thinking of love
Till the stars had run away
And the shadows eaten the moon.
Ah, penny, brown penny, brown penny,
One cannot begin it too soon.

William Butler Yeats



"Media is the plural of mediocre."  -- Jimmy Breslin



Peter Baxter
email@hidden



 _______________________________________________
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: 
 >Re: Akua Sweets (From: "Fleisher, Ken" <email@hidden>)

  • Prev by Date: Re: Help with find text command
  • Next by Date: Re: Akua Sweets
  • Previous by thread: Re: Akua Sweets
  • Next by thread: Re: Akua Sweets
  • Index(es):
    • Date
    • Thread