Here is the script that I am using. Save as an application and drop an PNG file on it. The high and medium files are the same size. Tested on OS 10.6.2
on open myFiles
tell application "Image Events" to launch
repeat with myFile in myFiles
tell application "Image Events"
set myItem to open myFile
set myFileName to the name of myFile
end tell
tell application "Finder"
set newItem to (container of myFile as string) & "JPG-low " & myFileName
end tell
tell application "Image Events"
save myItem in newItem as JPEG with compression level low
end tell
tell application "Finder"
set newItem to (container of myFile as string) & "JPG-medium " & myFileName
end tell
tell application "Image Events"
save myItem in newItem as JPEG with compression level medium
end tell
tell application "Finder"
set newItem to (container of myFile as string) & "JPG-high " & myFileName
end tell
tell application "Image Events"
save myItem in newItem as JPEG with compression level high
end tell
end repeat
end open
Any insight into getting access to more compression levels and/or actually getting medium and high to act as expected are appreciated.
Thanks,
- Zav