Cool Trick to Timestamp Several Pics from EXIF.

Discuss and share scripts and script files...
Post Reply
SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Cool Trick to Timestamp Several Pics from EXIF.

Post by SkyFrontier »

When trying to backup ("backup to") pictures from a virtual folder "My Bluetooth\All Bluetooth Neighborhood\CAM\OBEX File Transfer\Memory Stick\DCIM\100MSDCF" (started by the btooth app), XY just created a BTN%Copy%2 folder and no way to get the pics backup-ed.
After playing around I workaround'ed this using the following trick:
1) COPY the pictures into XY;
2) make sure that there are only those EXIF'ed pictures listed in pane;
3) enter this in address bar:

Code: Select all

::timestamp , formatdate("<dateexif>", , "n", ); focus; sendkeys"{down}"; focus a; sendkeys"{enter}";
4) when the operation reaches the end of the list and the window starts to blink, press ESC to terminate the script.
5) voilà - your pictures now will have timestamps reflecting the date they were shoot.
Kool, as I said. 8)
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

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

Re: Cool Trick to Timestamp Several Pics from EXIF.

Post by admin »

Hmm, could you explain what you try to achieve with this? And especially what this part is supposed to do:

Code: Select all

formatdate("<dateexif>", , "n", )
And what is a BTN%Copy%2 folder?

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: Cool Trick to Timestamp Several Pics from EXIF.

Post by SkyFrontier »

BUG! (innocuous on this version, as far as I can tell) ...I realized that the "n" argument has nothing to do here... (working on a non-address bar version; it screws stuff there, though)
---
BTN%Copy%2 folder is the only thing that XY creates when trying to "backup to" > dragging pics from that (WE) "My Bluetooth\All Bluetooth Neighborhood\CAM\OBEX File Transfer\Memory Stick\DCIM\100MSDCF" window into XY, instead of correctly copying (preserving original timestamps/"backup here" feature). Using "Copy here" works ok (it seems that XY calls for "Windows copy", and this may explain why one works and other fails).
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

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

Re: Cool Trick to Timestamp Several Pics from EXIF.

Post by admin »

SkyFrontier wrote:BUG! (innocuous on this version, as far as I can tell) ...I realized that the "n" argument has nothing to do here... (working on a non-address bar version; it screws stuff there, though)
---
BTN%Copy%2 folder is the only thing that XY creates when trying to "backup to" > dragging pics from that (WE) "My Bluetooth\All Bluetooth Neighborhood\CAM\OBEX File Transfer\Memory Stick\DCIM\100MSDCF" window into XY, instead of correctly copying (preserving original timestamps/"backup here" feature). Using "Copy here" works ok (it seems that XY calls for "Windows copy", and this may explain why one works and other fails).
My Bluetooth is not a drive, but a shell name space extension I assume?

FYI, there is an EXIF date stamping command built in: Miscellaneous / Timestamp / Set Modified Date to EXIF Date. Sets the Modified date of each selected image file (JPEG, TIFF) to its EXIF date.

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: Cool Trick to Timestamp Several Pics from EXIF.

Post by SkyFrontier »

admin wrote:-My Bluetooth is not a drive, but a shell name space extension I assume?
It seems to be - can't find it anywhere...
---
admin wrote:FYI, there is an EXIF date stamping command built in: Miscellaneous / Timestamp / Set Modified Date to EXIF Date. Sets the Modified date of each selected image file (JPEG, TIFF) to its EXIF date.
Oh yes, and I used it:

Code: Select all

   msg "Use this on a folder containing just EXIFed pictures.<crlf> It will auto apply EXIF timestamps into all files automatically, using their individual EXIF as source.<crlf> Remember: press ESC when all done (end of the list, blinking screen).<crlf> All set and ready? Please click OK to continue.", 1, ;

   copytext "#1074; #1073; focus; sendkeys'{down}'; focus a; sendkeys'{enter}'";
   focus a;
   sendkeys "^{v}";
   sendkeys"{enter}";
The problem was the confirmation dialogs at the end of each operation... :|
---
Using this brings another sort of trouble: quoting and "invalid date" messages of any flavors...

Code: Select all

   msg "Use this on a folder containing just EXIFed pictures.<crlf> It will auto apply EXIF timestamps into all files automatically, using their individual EXIF as source.<crlf> Remember: press ESC when all done (end of the list, blinking screen).<crlf> All set and ready? Please click OK to continue.", 1, ;

   copytext "$a = formatdate(<dateexif yyyy-mm-dd hh:nn:ss>); timestamp , $a; focus; sendkeys'{down}'; focus a; sendkeys'{enter}';";
   focus a;
//   regexreplace("$a", "formatdate('<dateexif yyyy-mm-dd hh:nn:ss>')");
   sendkeys"^{v}";
   sendkeys"{enter}";
Now trying to circumvent this with regexreplace... (yes, I'd like to stay focused on this "sendkeys/address bar" method - trying to get the most out of it when playing with several files, which I'm yet to master).
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

Kucera
Posts: 108
Joined: 31 Mar 2008 01:37
Location: Canada
Contact:

Re: Cool Trick to Timestamp Several Pics from EXIF.

Post by Kucera »

admin wrote: FYI, there is an EXIF date stamping command built in: Miscellaneous / Timestamp / Set Modified Date to EXIF Date. Sets the Modified date of each selected image file (JPEG, TIFF) to its EXIF date.
Goodness - where do I find "Miscellaneous" ?!? Am I going blind or did I mess up someplace in configuration?
Please help me out of my misery...
Regards Emil

Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

Re: Cool Trick to Timestamp Several Pics from EXIF.

Post by Stefan »

Kucera wrote:where do I find "Miscellaneous" ?!?
:lol: Only in "Tools > Customize Keyboard Shortcuts > Cat.: Misc".
To use this assign an key-combination or use the "#1073" with an script.

Kucera
Posts: 108
Joined: 31 Mar 2008 01:37
Location: Canada
Contact:

Re: Cool Trick to Timestamp Several Pics from EXIF.

Post by Kucera »

Thanks very much. All the capabilities, and so little time to explore them all - to use them to save more time... you get the picture.
Regards Emil

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

Re: Cool Trick to Timestamp Several Pics from EXIF.

Post by admin »

Kucera wrote:
admin wrote: FYI, there is an EXIF date stamping command built in: Miscellaneous / Timestamp / Set Modified Date to EXIF Date. Sets the Modified date of each selected image file (JPEG, TIFF) to its EXIF date.
Goodness - where do I find "Miscellaneous" ?!? Am I going blind or did I mess up someplace in configuration?
Please help me out of my misery...
Regards Emil
Did you know that there is a Help file? :wink:

Kucera
Posts: 108
Joined: 31 Mar 2008 01:37
Location: Canada
Contact:

Re: Cool Trick to Timestamp Several Pics from EXIF.

Post by Kucera »

admin wrote: Did you know that there is a Help file? :wink:
Would you believe, it never occurred to me to look there? Yet I trotted through the menu bars etc. looking for misc., and did not follow down deep enough, obviously. :oops: That smiley is nowhere near red enough to show how red in the face I am!
Regards Emil

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: Cool Trick to Timestamp Several Pics from EXIF.

Post by SkyFrontier »

Any help on this, please?

Code: Select all

::timestamp , formatdate("<dateexif>", , "n", ); focus; sendkeys"{down}"; focus a; sendkeys"{enter}";
It's supposed to be applied on all (assumed there's only) EXIF'ed pictures on a list and I've tried everything. No go.
The basic idea is:

Code: Select all

//Using this brings another sort of trouble: quoting and "invalid date" messages of any flavors...
//Code:
   msg "Use this on a folder containing just EXIFed pictures.<crlf> It will auto apply EXIF timestamps into all files automatically, using their individual EXIF as source.<crlf> Remember: press ESC when all done (end of the list, blinking screen).<crlf> All set and ready? Please click OK to continue.", 1, ;

   copytext "$a = formatdate(<dateexif yyyy-mm-dd hh:nn:ss>); timestamp , $a; focus; sendkeys'{down}'; focus a; sendkeys'{enter}';";
   focus a;
//   regexreplace("$a", "formatdate('<dateexif yyyy-mm-dd hh:nn:ss>')");
   sendkeys"^{v}";
   sendkeys"{enter}";
I'd like to preserve the sendkeys/address bar idea, but I'm open to other method if any.
Thanks.
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

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

Re: Cool Trick to Timestamp Several Pics from EXIF.

Post by admin »

SkyFrontier wrote:Any help on this, please?

Code: Select all

::timestamp , formatdate("<dateexif>", , "n", ); focus; sendkeys"{down}"; focus a; sendkeys"{enter}";
It's supposed to be applied on all (assumed there's only) EXIF'ed pictures on a list and I've tried everything. No go.
The basic idea is:

Code: Select all

//Using this brings another sort of trouble: quoting and "invalid date" messages of any flavors...
//Code:
   msg "Use this on a folder containing just EXIFed pictures.<crlf> It will auto apply EXIF timestamps into all files automatically, using their individual EXIF as source.<crlf> Remember: press ESC when all done (end of the list, blinking screen).<crlf> All set and ready? Please click OK to continue.", 1, ;

   copytext "$a = formatdate(<dateexif yyyy-mm-dd hh:nn:ss>); timestamp , $a; focus; sendkeys'{down}'; focus a; sendkeys'{enter}';";
   focus a;
//   regexreplace("$a", "formatdate('<dateexif yyyy-mm-dd hh:nn:ss>')");
   sendkeys"^{v}";
   sendkeys"{enter}";
I'd like to preserve the sendkeys/address bar idea, but I'm open to other method if any.
Thanks.
sendkeys is officially not existing, it's so evil that I even refuse any help here. :P

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: Cool Trick to Timestamp Several Pics from EXIF.

Post by SkyFrontier »

admin wrote:sendkeys is officially not existing, it's so evil that I even refuse any help here. :P
Ow, please, don't do that... :cry:
(ROTFL)
Well... I do like its evilness... soooooo bad... :twisted:
Thank you for... the... bad news..., Don! :D
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

Post Reply