Trippy idea.
Hi Ferrix,
attached a diff for the --mayi idea. The knowledgeable program must return an error code of 0 if it wants the file to be uploaded to s3. Anything else and the file will not be uploaded. I chose this way as if the knowledgeable program is missing or produces any other kind of error the file will still be backed up.
the syntax of mayi changed a bit since my first request in that it takes '%s' instead of '%1' as this was easier with me not really knowing ruby.
I now have:
s3sync.rb -s -r --delete --mayi="isstarred.py %s" <dir> <bucket>
in my upload scripts. the python script only returns 0 for images with a IPTC rating of 1 and above which does wonders for the amount of data I need to upload :-)
regards
charlie