Skip to content

Instantly share code, notes, and snippets.

@wadadanet
Created July 8, 2019 02:46
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 wadadanet/3b7a72e664dca2e4f09dbc73b378551a to your computer and use it in GitHub Desktop.
Save wadadanet/3b7a72e664dca2e4f09dbc73b378551a to your computer and use it in GitHub Desktop.
macのAutomatorで一括mozcjpeg処理をするシェルスクリプト
#!/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