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

Re: Image Events


  • Subject: Re: Image Events
  • From: Peter Waibel <email@hidden>
  • Date: Fri, 18 Aug 2006 17:08:24 +0200


Am 18.08.2006 um 15:12 schrieb Jay Louvion:


Anyone has an idea why when summoning Image Events from a subroutine (called from inside a Finder tell block), the image opens in Preview instead and the script states that the variable (that should have been defined by the opening of the image in Image Events) is not defined ?



This works for me (Mac OS 10.4.5).

tell application "Finder"
	set myAlias to (choose file) as alias
	my Resizethis(myAlias)
end tell

on Resizethis(onefile)
	tell application "Image Events"
		launch
		set this_image to open onefile
		scale this_image to size 100
		save this_image
		close this_image
	end tell
end Resizethis

Peter



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Image Events (From: Jay Louvion <email@hidden>)

  • Prev by Date: Re: Image Events
  • Next by Date: Re: Image Events
  • Previous by thread: Re: Image Events
  • Next by thread: Re: Image Events
  • Index(es):
    • Date
    • Thread