Jump to content

AutoRename Pictures


danmero
 Share

Recommended Posts

I try to find a way to put in the loop the function FileGetTime and to rename the file by the creation date.

For the moment the script is working, if I set the @YEAR on the script.

I need to get the @YEAR value from the file so I can rename file from the last year.

Tks for your help.

FotoRename2.au3

Link to comment
Share on other sites

So since the year is not encoded in the old file name, I'm not certain where you are expecting to get it.

If you can use the file createion date information, see the FileGetTime() function.

The date and time that the picture was actually taken is stored in a data section in the jpg file called "exif". There is some discussion of reading exif data here in the foruns including a reference to a script by LazyCat to read it, but I was unable to find it.

There are lots of utilities out there in things other than AutoIt to read and write exif info (including some Perl modules).

Dale

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y

Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Link to comment
Share on other sites

Ooh, I`ve never seen that UDF before, only the "Images size reader"... :">

Btw, nice work !

Not only, look for the JPEG EXIF info reader (here). With it you can get actual data when image was shooted.

<{POST_SNAPBACK}>

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...