Ok I am still having a few issues so some other questions if I can
Step 1:- Move Files From SD Card to Local Hard Drive Directory upon insertion of SD Card
- Code: Select all
if all conditions met for the file/folder bing matched
kind is folder
Run rules on folder contents
if any of the following are met for the file or folder being matched
kind is image
kind is movie
move to folder Imported Photos
This leaves me with a clean SD card to put back in Camera or bag
Step 2:- Monitor Folder for import and move jpg duplicates of CR2 files to directory for manual deletion or whatever. Copy remaining files (No duplicate JPG Files) to drive on NAS (also monitored for renaming and sorting) for backup. Finally import files into Aperture and delete imported (Still working on this Aperture part)
- Code: Select all
RULE 1
if all the following conditions are met for file or folder
kind is JPEG image
Passess shell script embedded script
move to folder for duplicates
{Embedded Script}
filename=$(basename "$1")
extension="${filename##*.}"
filename="${filename%.*}"
if [ -a "$filename.CR2" ]; then
exit 0;
fi
exit 1;
RULE 2
if all the following condtions are met for the file or folder being matched
extension is CTG
Move to Trash
RULE 3
if all the following conditions are met for the file or folder being matched
kind is image
copy to NAS directory
Run AppleScript embedded Script
{Embedded Script}
tell application "Finder"
delay 5
end tell
RULE 4
Aperture Stuff
The problem I am having is that files are being copied to the NAS (Rule 3) before ALL the duplicate JPG files are moved out of the directory as being done in Rule 1. It also appears to be having problems in that it is now not picking up all the duplicates.
I am just testing this one part at a time before moving to the next one. Had it planned out in advance They key part being getting rid of those CR2/JPG duplicates.