• 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
image event help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

image event help


  • Subject: image event help
  • From: Paul Abney <email@hidden>
  • Date: Wed, 20 Oct 2010 15:55:08 -0500

The following snippet sometimes works, and sometimes fails at the line 
set imginfo to properties of theimg with the error theimg is not defined
Yet I run the script again and it works. Any clues as to what I am doing wrong?


repeat with i from 1 to number of items in pdfs_folder
set this_item to item i of pdfs_folder as alias
tell application "Image Events"
set theImg to open this_item
set imgInfo to properties of theImg
close theImg
copy dimensions of imgInfo to {W, H}
copy resolution of imgInfo to {WR, HR}
end tell


Thanks
Paul
 _______________________________________________
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

  • Follow-Ups:
    • Re: image event help
      • From: Stan Cleveland <email@hidden>
  • Prev by Date: Re: Changing "open with" (Mac Finder) for certain files
  • Next by Date: Re: Changing "open with" (Mac Finder) for certain files
  • Previous by thread: Re: Applescript and email
  • Next by thread: Re: image event help
  • Index(es):
    • Date
    • Thread