Page 3 of 3

Re: EXIF Info..

Posted: 19 Oct 2011 10:40
by aimy
admin wrote:You softened my heart. Next version can do this:

Code: Select all

rename b, '*-<prop CameraModel>', p;
Thank you so much admin.. I really appreciate it.

I hope that can also be made useful for other file property especially the EXIF info.

Or may I suggest that Batch Rename should be made flexible by user defined variable?

For example in this case, let's say I've set $CamModel as this:

Code: Select all

      //read property from actual file:
      $CamMod = property("CameraModel", $file);
      //trim space and tabs around the reported property:
      $CamMod = regexreplace($CamMod, "\s*|\t*(.*)\s*|\t*", "$1");
So, using the Batch Rename I should able to put this command:

Code: Select all

rename b, '*_$CamMod', p;
I hope it does make sense.

Anyway, at the moment all I need is

Code: Select all

rename b, '*-<prop CameraModel>', p;
Thank you so much again.

Re: EXIF Info..

Posted: 19 Oct 2011 10:49
by admin
Not only CameraModel, but ALL shell properties.

But there is no trimming in <prop ...>. It would be possible, but there are endless possibilities, so it would be a drag to define a scheme that covers them.

If EXIF data are exposed to the Shell Properties (aka Shell Columns), then yes.

Re: EXIF Info..

Posted: 19 Oct 2011 10:52
by zer0
aimy wrote:I thought it is a text like Nottingham for example. If it is, it's very sensible why I want to use that info right? :wink:
I see where it can be useful as far as retrieving it and using when renaming files is concerned. Not so much if you're talking about renaming geotagging information.

Re: EXIF Info..

Posted: 19 Oct 2011 10:55
by aimy
By the way, I just would like to explain why I really need this camera property as part of the rename pattern.

This is due to the fact that sometimes, during the same occasion, several cameras including cameraphones would be used. So I would like to combine all of them in one folder and append the camera model as the suffix with the exifdate yyyymmdd.hhmmss at the front of the filename.

So I would be easy for me to determine which photos came from which camera. :)

Thank you.

Re: EXIF Info..

Posted: 19 Oct 2011 11:01
by aimy
admin wrote:Not only CameraModel, but ALL shell properties.

But there is no trimming in <prop ...>. It would be possible, but there are endless possibilities, so it would be a drag to define a scheme that covers them.

If EXIF data are exposed to the Shell Properties (aka Shell Columns), then yes.
That's true.

That's why I was suggesting that user defined variable should be allowed in Batch Rename, a variable really I mean which is retrieved from each file, not a single value read from the 1st file only.

Thank you.

Re: EXIF Info..

Posted: 19 Oct 2011 11:04
by aimy
zer0 wrote:
aimy wrote:I thought it is a text like Nottingham for example. If it is, it's very sensible why I want to use that info right? :wink:
I see where it can be useful as far as retrieving it and using when renaming files is concerned. Not so much if you're talking about renaming geotagging information.
Nope. That's not what I want..

Having said that, can the EXIF info particularly the property WhenTaken be recalculated using the script?

This is important whenever the camera is set with the wrong time :(

Can it be achieved?

Thank you.

Re: EXIF Info..

Posted: 19 Oct 2011 11:06
by admin
aimy wrote:
admin wrote:Not only CameraModel, but ALL shell properties.

But there is no trimming in <prop ...>. It would be possible, but there are endless possibilities, so it would be a drag to define a scheme that covers them.

If EXIF data are exposed to the Shell Properties (aka Shell Columns), then yes.
That's true.

That's why I was suggesting that user defined variable should be allowed in Batch Rename, a variable really I mean which is retrieved from each file, not a single value read from the 1st file only.

Thank you.
Which "user defined variable"? Do you have an example?

Re: EXIF Info..

Posted: 19 Oct 2011 11:12
by aimy
admin wrote: Which "user defined variable"? Do you have an example?
For example,

Code: Select all

$CamMod = property("CameraModel", $file);
assuming that $file is the predefined variable set by XYplorer denoting the current selected file.

Re: EXIF Info..

Posted: 19 Oct 2011 11:23
by admin
aimy wrote:
admin wrote: Which "user defined variable"? Do you have an example?
For example,

Code: Select all

$CamMod = property("CameraModel", $file);
assuming that $file is the predefined variable set by XYplorer denoting the current selected file.
But how would you pass this to the rename function?

Re: EXIF Info..

Posted: 19 Oct 2011 11:35
by aimy
admin wrote: But how would you pass this to the rename function?

Code: Select all

rename b, '*_$CamMod', p;
:mrgreen:

Re: EXIF Info..

Posted: 19 Oct 2011 11:38
by admin
aimy wrote:
admin wrote: But how would you pass this to the rename function?

Code: Select all

rename b, '*_$CamMod', p;
:mrgreen:
Come on, this cannot work. I gave you <prop ...>. What are you missing? Trimming? OK, you have to live with(out) that.

Re: EXIF Info..

Posted: 20 Oct 2011 06:38
by aimy
admin wrote:
aimy wrote:
admin wrote: But how would you pass this to the rename function?

Code: Select all

rename b, '*_$CamMod', p;
:mrgreen:
Come on, this cannot work. I gave you <prop ...>. What are you missing? Trimming? OK, you have to live with(out) that.
Sorry admin.. By human logic, it sure can right?

Anyway, nevermind. What you gave me is more than my pleasure at the moment.

Thank you so much.

Re: EXIF Info..

Posted: 26 Oct 2011 01:13
by aimy
Admin.

Thank you so much for the new release:

Code: Select all

XYplorer 10.50 has been released on 25-Oct-2011. Here's a quick introduction to the main new features:
Grep. Finding files by content now supports Regular Expressions. 
[b]Rename Special. Now you can mass rename files using meta properties like Camera Model, Width and Height, or Bit Rate.[/b] 
User Buttons. Now user-defined colored labels are supported. 
Full Screen Preview. Now the mouse wheel is supported.
Thousand of thanks.