Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- i = 1
- h.each_pair do |id, type|
- puts "#{id} - #{i}/#{h.size}"
- begin
- eval "`python '/System/Library/Automator/Combine PDF Pages.action/Contents/Resources/join.py' -o #{id}/joined.pdf #{id}/#{id}.pdf #{id}/attachment.pdf`"
- rescue
- puts "oh :("
- end
- i = i+1
- end
Add Comment
Please, Sign In to add comment