Change image type?

Hello all.

I was wondering how you would go about changing an image from one format to anther e.g. (PSD to JPG). I am guessing it would probably involve the invocation of shell script or something similar.

Any and all advice welcome.

Thank you.

Derek :slight_smile:

Try thisโ€ฆ

set theImage to choose file of type "PSD"
set theOutputFolder to choose folder
tell application "Image Events"
	launch
	set theImageReference to open theImage
	tell theImageReference
		save in (theOutputFolder as string) & "Converted.jpg" as JPEG
		close
	end tell
end tell

Regards,

Tom

Operating System: Mac OS X (10.6)

Thank you very much. That will work perfectly :slight_smile: