Created
February 9, 2019 23:31
-
-
Save plashchynski/d839a46b780a974c05e6ab9132bba60c to your computer and use it in GitHub Desktop.
Apple script to save any images as low fidelity JPG
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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