[newbie] convert to jpeg

Hello.
I need to create a folder action to convert images to jpeg format.
I would to use “Image events”.
When an item is dragged to my folder it must be converted to jpeg and copied to another folder.
My problem is that the format of original files are of many types.
It exists a script???

I’m trying to use one that I create, but it doesn’t work!

Can you help me??

Thanks!!!

(if you need I can post my test)

The easiest and most scriptable way to convert image formats is with a program called GraphicConverter; a must have for this kind of thing. http://www.lemkesoft.com/en/index.htm

You might want to start by searching this site for “Image Events” and see what others have done. Also, Apple has some good info here http://www.apple.com/applescript/imageevents/.

Keep in mind that (to the best of my knowledge) the JPEG compression settings are not user settable with Image Events, and others have been disatisfied with the results.

-N

Try this:

on adding folder items to thisFolder after receiving addedItems
	try
		tell application "Image Events"
			repeat with thisItem in addedItems
				set theImage to open thisItem
				save theImage as JPEG in "Mac mini HD:Users:Shared:Test:Destination:"
				close theImage
			end repeat
		end tell
	on error errorMsg number errorNum
		display dialog "Error (" & errorNum & ")" & return & return & errorMsg buttons {"Cancel"} default button 1 with icon caution
	end try
end adding folder items to

thank you!
I’m testing this script:

on adding folder items to this_folder after receiving these_items
try
repeat with i from 1 to number of items in these_items
set this_item to item i of these_items
tell application “Image Events”
set theImage to open this_item
save theImage as JPEG in “HDG5:Users:fra:Desktop:prova:”
close theImage
end tell
end repeat
on error errorMsg number errorNum
display dialog “Error (” & errorNum & “)” & return & return & errorMsg buttons {“Cancel”} default button 1 with icon caution
end try
end adding folder items to

It works fine with psd image, but doesn’t convert eps …
I have to convert a lot of types of images (.ai, .tiff, . eps, .psd, .fh etc etc).
So I don’t know if I can use GC or Photoshop.
There would be format that photoshop doesn’t support…

ok,
I’ve found that Image Event doesn’t support formats that I use.
So, I think I have to use Graphic Converter.
But, where can I find a dictionary for this application???

Thanks

I use iMagine Photo to do this - it’s free and far easier to work with than ImageEvents

http://www.yvs.eu.com