EXIF info as script variables (for renaming)

Features wanted...
Post Reply
pmoore
Posts: 28
Joined: 27 May 2008 13:50

EXIF info as script variables (for renaming)

Post by pmoore »

I'd like to be able to get at the EXIF tags (specifically, date taken) on my photos for use in batch rename/move/copy jobs (specifically, to rename files into a folder structure with one folder for all photos taken on a particular date). My first instinct was that all I needed was for the date to be available as an XY variable, like <date> or <datem>.

Would it be possible to add EXIF tags as variables (and maybe MP3 tags as well)?

Paul.

PS Suggestions of other ways of doing the bulk rename job I mention above would be gratefully received, as well :)

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: EXIF info as script variables (for renaming)

Post by serendipity »

Yes! it would be useful to do simple tasks on EXIFs such as what you mentioned as I sometimes have to do these tasks myself. Maybe XY could allow some basic operations as in the case of mp3 tags now. But that only Don has to answer.
But anything more advanced has to be dealt by advanced apps such as ExifTool (stand-alone) which I discovered recently. I haven't used it extensively but know that you can trigger it from within XY.

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Re: EXIF info as script variables (for renaming)

Post by j_c_hallgren »

pmoore wrote:Would it be possible to add EXIF tags as variables (and maybe MP3 tags as well)?
The problem with EXIF tags is that they are constantly changing as the various vendors of hardware make custom ones for their own use, and this can become a maintenance nightmare or similar...the base tags are pretty much fixed but those may not have the desired info.

See this prior thread which seems somewhat similar:
http://www.xyplorer.com/xyfc/viewtopic.php?f=5&t=2716
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

pmoore
Posts: 28
Joined: 27 May 2008 13:50

Re: EXIF info as script variables (for renaming)

Post by pmoore »

serendipity wrote:But anything more advanced has to be dealt by advanced apps such as ExifTool (stand-alone)
That looks like it will suit my needs. Thanks for the pointer.
Paul.

pmoore
Posts: 28
Joined: 27 May 2008 13:50

Re: EXIF info as script variables (for renaming)

Post by pmoore »

j_c_hallgren wrote:
pmoore wrote:Would it be possible to add EXIF tags as variables (and maybe MP3 tags as well)?
The problem with EXIF tags is that they are constantly changing as the various vendors of hardware make custom ones for their own use, and this can become a maintenance nightmare or similar...the base tags are pretty much fixed but those may not have the desired info.
Well, sticking with the well-defined base tags seems like a sensible approach ayway - it would certainly be fine for my needs. The main one would be the date taken. While the others may be useful, I can't see how you'd use them in a file management context.
j_c_hallgren wrote:See this prior thread which seems somewhat similar:
http://www.xyplorer.com/xyfc/viewtopic.php?f=5&t=2716
I saw that thread, but didn't think it particularly relevant, as it's talking about modifying the tags, which is going to be much harder (as well as not being what I want).

Paul

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Re: EXIF info as script variables (for renaming)

Post by j_c_hallgren »

pmoore wrote:
j_c_hallgren wrote:See this prior thread which seems somewhat similar:
http://www.xyplorer.com/xyfc/viewtopic.php?f=5&t=2716
I saw that thread, but didn't think it particularly relevant, as it's talking about modifying the tags, which is going to be much harder (as well as not being what I want).
While it's true that thread does refer to modifiying tags, it also talks a fair amount about tag variables and scripting, so that's why I pointed to it.
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Re: EXIF info as script variables (for renaming)

Post by j_c_hallgren »

Updating this thread with a link to my post that relates:
http://www.xyplorer.com/xyfc/viewtopic. ... 589#p39589
Has a pointer to a site that documents EXIF info data...
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

admin
Site Admin
Posts: 64883
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: EXIF info as script variables (for renaming)

Post by admin »

EXIF variables are supported since 8.30:
http://www.xyplorer.com/release_8.30.htm#exif

Post Reply