danmero Posted June 17, 2005 Share Posted June 17, 2005 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 More sharing options...
DaleHohm Posted June 17, 2005 Share Posted June 17, 2005 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 More sharing options...
Helge Posted June 17, 2005 Share Posted June 17, 2005 Whipsers : http://proxru.port5.com/udfs.html(His UDF only returns height and width though..) Link to comment Share on other sites More sharing options...
Lazycat Posted June 17, 2005 Share Posted June 17, 2005 (His UDF only returns height and width though..)Not only, look for the JPEG EXIF info reader (here). With it you can get actual data when image was shooted. Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s]) Link to comment Share on other sites More sharing options...
Helge Posted June 17, 2005 Share Posted June 17, 2005 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 More sharing options...
danmero Posted June 28, 2005 Author Share Posted June 28, 2005 This is my last update. Thanks, you for your help, I get many ideas here. I try to make my UDF simple and useful. Pulling our information from EXIF, if the picture was modified is too heavy. Therefore, here is my final one.FotoRename3.au3 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now