• 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: Helmut Fuchs <email@hidden>
  • Date: Wed, 1 Aug 2007 16:02:49 +0200

If you don't mind using the shell you could use "mdls" to get at the metadata collected for Spotlight.

This includes most of this information you ask for, but the compression level is not part of this metadata.

I haven't tried whether "mdls" just returns if alpha channels exist or not, but there is an attribute for it.

This is a sample output of "mdls" for a JPEG file:

kMDItemAttributeChangeDate = 2005-05-13 01:23:36 +0200
kMDItemBitsPerSample = 32
kMDItemColorSpace = "RGB"
kMDItemContentCreationDate = 2003-04-04 20:33:26 +0200
kMDItemContentModificationDate = 2003-04-04 20:33:26 +0200
kMDItemContentType = "public.jpeg"
kMDItemContentTypeTree = ("public.jpeg", "public.image", "public.data", "public.item", "public.content")
kMDItemDisplayName = "0,1020,255663,00.jpg"
kMDItemFSContentChangeDate = 2003-04-04 20:33:26 +0200
kMDItemFSCreationDate = 2003-04-04 20:33:26 +0200
kMDItemFSCreatorCode = 0
kMDItemFSFinderFlags = 0
kMDItemFSInvisible = 0
kMDItemFSIsExtensionHidden = 0
kMDItemFSLabel = 0
kMDItemFSName = "0,1020,255663,00.jpg"
kMDItemFSNodeCount = 0
kMDItemFSOwnerGroupID = 20
kMDItemFSOwnerUserID = 501
kMDItemFSSize = 34890
kMDItemFSTypeCode = 0
kMDItemHasAlphaChannel = 0
kMDItemID = 189700
kMDItemKind = "JPEG-Bild"
kMDItemLastUsedDate = 2003-04-04 20:33:26 +0200
kMDItemPixelHeight = 420
kMDItemPixelWidth = 317
kMDItemProfileName = "sRGB IEC61966-2.1"
kMDItemResolutionHeightDPI = 72
kMDItemResolutionWidthDPI = 72
kMDItemUsedDates = (2003-04-04 20:33:26 +0200)


Using this is most likely faster than using Photoshop, but the latter is definitely simpler to use.

Regards,

Helmut
_______________________________________________
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: Akua Sweets
  • Next by Date: Re: AppleScript and shell scripting
  • Previous by thread: Re: Akua Sweets
  • Next by thread: Re: Akua Sweets
  • Index(es):
    • Date
    • Thread