写真.appから写真をダウンロードして縮小してExifを消すAutomator
ブログに写真を上げるなら、Exifの削除とサイズの縮小はやったほうがいいよね。
→ImageOptimとプレビューで出来た。
→結構手数が掛かる。
→Automatorなるものを使ってみよう。
→思ったより時間掛かったので結論をメモ。
for f in "$@"
do
tmp=~/Desktop/
tmp2s=`find "$f"* -type f -print0 | xargs -0 -n1 basename`
for l in ${tmp2s[@]}
do
echo "$tmp""$l"
done
mv "$f"/* "$tmp"
rm -rf "$f"
done
Shift+Ctrl+Command+1に割り付けてみたら多分動いてる。
入力チェック?何それ?