Skip to content

Instantly share code, notes, and snippets.

@evizitei
Last active August 29, 2015 14:13
Show Gist options
  • Save evizitei/d2f1143b6885e879397a to your computer and use it in GitHub Desktop.
Save evizitei/d2f1143b6885e879397a to your computer and use it in GitHub Desktop.
Process Photobooth'd receipts
#!/bin/bash
# when processing receipts, I need to have them rotated 90-deg and
# flipped horizontally because of how photobooth stores them.
# Iterate through all the files in the directory, rotate, and flip
for file in *.*
do
sips -r 90 "$file"
sips -f horizontal "$file"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment