Created
July 8, 2019 02:46
-
-
Save wadadanet/3b7a72e664dca2e4f09dbc73b378551a to your computer and use it in GitHub Desktop.
macのAutomatorで一括mozcjpeg処理をするシェルスクリプト
This file contains 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
#!/bin/sh | |
for f in "$@" | |
do | |
mkdir -p "$(dirname $f)/mozcjpeg" | |
/usr/local/bin/mozcjpeg $f > "$(dirname $f)/mozcjpeg/$(basename $f)" | |
dir="$(dirname $f)/mozcjpeg" | |
done | |
osascript -e "display notification \"$dir\" with title \"mozcjpeg complete!\"" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment