• 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: Looking for Specific Bytes in a File
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Looking for Specific Bytes in a File (From: Marconi <email@hidden>)
 >Re: Looking for Specific Bytes in a File (From: Graff <email@hidden>)

  • Prev by Date: More ichat scripting
  • Next by Date: Save safari document
  • Previous by thread: Re: Looking for Specific Bytes in a File
  • Next by thread: Re: Looking for Specific Bytes in a File
  • Index(es):
    • Date
    • Thread