Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.