Re: Looking for Specific Bytes in a File
Re: Looking for Specific Bytes in a File
- Subject: Re: Looking for Specific Bytes in a File
- From: Emmanuel <email@hidden>
- Date: Sat, 14 Feb 2004 07:58:02 +0100
At 2:57 PM -0500 2/13/04, Graff wrote:
>
If you are using Panther then Image Events is a component of the Panther and it can be scripted. The following script gets the dimensions of an image for you easily:
>
------------
>
set theFile to choose file
>
tell application "Image Events"
>
set {theWidth, theHeight} to dimensions of image theFile
>
end tell
>
------------
>
>
This will work on all images files of the following types:
>
PICT/Photoshop/BMP/QuickTime Image/GIF/JPEG/MacPaint/JPEG2/SGI/PSD/TGA/Text/PDF/PNG/TIFF
Under Jaguar I installed the following script in the black script menu:
------------
tell application "Finder" to set f to selection
set f to f as alias
tell application "Image Capture Scripting"
set theDoc to (open f)
set w to width of theDoc
set h to height of theDoc
close theDoc
end tell
display dialog ("" & w & " x " & h) buttons {"OK"} default button 1 with icon 1
------------
Works for many many file types - as Ken wrote, wrote and wrote.
Emmanuel
_______________________________________________
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.