download pdf automator code example Example: automator save pdf to downloads /usr/bin/curl -L -s -o "$OUTDIR${f##*/}.pdf" "$f"