From 5c3306ce4d5a0944babc13b10e766b926ec03cb2 Mon Sep 17 00:00:00 2001 From: Oliver Schrenk Date: Tue, 31 Jul 2012 16:31:29 +0200 Subject: .aliases: Add `mergepdf` alias that concatenates PDF files Credit goes to Fritz Stelluto: http://blog.gotofritz.net/howto/joining-pdf-files-in-os-x-from-the-command-line/. --- .aliases | 4 ++++ 1 file changed, 4 insertions(+) (limited to '.aliases') diff --git a/.aliases b/.aliases index 219ff07..5090499 100644 --- a/.aliases +++ b/.aliases @@ -95,6 +95,10 @@ alias showdesktop="defaults write com.apple.finder CreateDesktop -bool true && k # URL-encode strings alias urlencode='python -c "import sys, urllib as ul; print ul.quote_plus(sys.argv[1]);"' +# Merge PDF files +# Usage: `mergepdf -o output.pdf input{1,2,3}.pdf` +alias mergepdf='/System/Library/Automator/Combine\ PDF\ Pages.action/Contents/Resources/join.py' + # Disable Spotlight alias spotoff="sudo mdutil -a -i off" # Enable Spotlight -- cgit v1.2.3