• 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: AS and Image Attributes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AS and Image Attributes


  • Subject: Re: AS and Image Attributes
  • From: Mr Tea <email@hidden>
  • Date: Thu, 13 Mar 2003 17:18:34 +0000

This from Scott Lewis - dated 13/3/03 2:43 pm:

> Does anyone know if there are Scripting Additions or tools
> available to be able to access/read image attributes such as width, height,
> color mode and resolution without using Adobe Photoshop and/or without
> opening the image? I need solutions for both OS9 & X.

I think your best bet for this is probably iView MediaPro. Accessing a
folder full of images with it is much quicker than opening them in an image
editor, especially if you open in list view (which can be configured to
display the info you want to see).

Here's a sample script that opens a folder of your choosing and displays
info about the first image in the iView catalog that is created.

choose folder with prompt "Select a folder of images:" returning theFolder
tell application "iView MediaPro"
activate
make window --prevents iView from loading images into existing window
open theFolder
repeat --primitive loop checks if catalog has finished building yet
set startCount to count of objects of window 1
delay 1
set endCount to count of objects of window 1
if startCount = endCount then exit repeat
end repeat
tell object 1 of window 1
set {p, x, y, r, d} to {path, width, height, resolution, color depth}
end tell
display dialog "Info for " & p & "

Width: " & x & "
Height: " & y & "
Resolution: " & r & "
Colour Depth: " & d
end tell


HTH


Nick
pp Mr TEA
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >AS and Image Attributes (From: Scott Lewis <email@hidden>)

  • Prev by Date: Running external script from Mail.app
  • Next by Date: select in aw6
  • Previous by thread: Re: AS and Image Attributes
  • Next by thread: Running external script from Mail.app
  • Index(es):
    • Date
    • Thread