I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2010-01-31 09:36:22.262646-08 by kesh
folder name from file-rename
Hi all. I'm creating a folder structure based on date for jpeg files. I'd like to get a list of folders which were created so that I can further process the files. I'm on Mac 10.5.8. ExifTool 8.06. here's the command I'm using-
"/usr/bin/exiftool '-FileName<DateTimeOriginal' -d '/photo/%Y%m%d/%H%M%S-%%f%%-c.%%e' '/Volumes/Hom +e/Users/sudha/Pictures/camera_import'/*.*"
thanks in advance Kesh
Direct Responses: 12288 | Write a response
Posted on 2010-01-31 12:37:57.606759-08 by exiftool in response to 12287
Re: folder name from file-rename
Hi Kesh,

Try adding the following to the end of your command line:

-v | grep "Created directory"

- Phil
Direct Responses: 12304 | Write a response
Posted on 2010-02-04 02:17:45.874951-08 by xipmix in response to 12288
Re: folder name from file-rename
Can I ask a related question? I am renaming a bunch of files in the same directory and noting the rename in the ImageHistory. exiftool generates the new name from the DateTimeOriginal tag. The call to exiftool looks like this:
for f in *.NEF do exiftool -o . -v \ -ImageHistory="copy of "$f"" \ -d %Y-%m-%d_%H-%M-%S%%-c.%%e "-filename<datetimeoriginal" \ "$f" done
My question - is there a way to tell exiftool to print _only_ the name of the _generated_ file? I can parse it out of the -v output but that's pretty ugly. I've tried various experiments with -s -p and -w, with no luck.
Direct Responses: 12307 | Write a response
Posted on 2010-02-04 04:50:07.717736-08 by exiftool in response to 12304
Re: folder name from file-rename
Parsing the -v output is the only way I can think of to do what you want.
Direct Responses: Write a response