tb-dotfiles/chezmoi/dot_zshrc.d/executable_pdf_join.zsh

14 lines
268 B
Bash
Raw Normal View History

2022-04-22 10:06:53 -04:00
if [[ "$OSTYPE" = darwin* ]]; then
pdf_join() {
(
set -euo pipefail
read -r "output_file?Name of output file: "
"/System/Library/Automator/Combine PDF Pages.action/Contents/Resources/join.py" \
-o "$output_file" "$@"
open "$output_file"
)
}
fi