Skip to content

Instantly share code, notes, and snippets.

@plashchynski
Created February 9, 2019 23:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plashchynski/d839a46b780a974c05e6ab9132bba60c to your computer and use it in GitHub Desktop.
Save plashchynski/d839a46b780a974c05e6ab9132bba60c to your computer and use it in GitHub Desktop.
Apple script to save any images as low fidelity JPG
on run {input, parameters}
set theList to input
repeat with a from 1 to length of theList
set theCurrentListItem to item a of theList
set theFilePath to theCurrentListItem
set theFile to theFilePath as alias
tell application "Image Events"
set theImage to open theFile
save theImage as JPEG in theFile with compression level low
end tell
end repeat
return input
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment