Created
March 20, 2011 14:14
-
-
Save pal/878340 to your computer and use it in GitHub Desktop.
Organize my newly imported images to the correct folder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Used in an Automator action that is run as a Image Capture Plugin | |
# Setup some constants | |
SRC_DIR=${1:-"$HOME/Pictures"} # defaults to "$HOME/Pictures" or file argument | |
DEST_DIR="$HOME/Backuped/originals/pictures" | |
# use exiftool to organize all pictures, yay! | |
# http://www.sno.phy.queensu.ca/~phil/exiftool/ | |
exiftool -r -d $DEST_DIR/%Y/%m/%d/%Y-%m-%d_%H.%M.%S%%-c.%%e "-filename<datetimeoriginal" $SRC_DIR | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment