[Solved] Current Timestamp Button for Info Panel

Features wanted...
Post Reply
VeeGee

[Solved] Current Timestamp Button for Info Panel

Post by VeeGee »

Good morning all,
Lately I have found myself having to update the timestamps (Created, Modified or Accessed) on files. This is incredibly easy to do using the Info Panel | Properties section.

Is it possible to add a small clock/calendar icon next to the existing check mark and X that would insert the current timestamp into the text field ? Maybe even put the new icon on the left side of the box (if it fits/adjusts better).
Image-003.png
Unless I am missing something completely obvious, I didn't see a way to update the field(s) with the current timestamp.
You do not have the required permissions to view the files attached to this post.
Last edited by VeeGee on 08 Sep 2022 15:18, edited 2 times in total.

LittleBiG
Posts: 1848
Joined: 08 Apr 2011 12:57
Location: Win10x64

Re: Current Timestamp Button for Info Panel

Post by LittleBiG »

Delete the existing value (to empty the field out) then click on the green tick to apply. The empty field will be filled out with the current timestamp.

VeeGee

Re: Current Timestamp Button for Info Panel

Post by VeeGee »

Ha ! Thanks, that tricked worked perfect. I would not have tried that.

JLoftus
Posts: 595
Joined: 22 Jan 2014 14:58

Re: [Solved] Current Timestamp Button for Info Panel

Post by JLoftus »

Another tip, I added the following as a CTB script:

$file = "";
foreach($file, "<get SelectedItemsPathNames |>") {
timestamp, , $file;
}

This allows one button click to timestamp all the currently selected list items in one go. I use this frequently when editing music folders.

Look at the help file for the syntax of timestamp - you can set any/all of the date fields

VeeGee

Re: [Solved] Current Timestamp Button for Info Panel

Post by VeeGee »

Thanks for this - tried it out, works great and the modifications via Help were easy to add.

Side question, it's been some time since I made or modified a CTB. It was easy to do and I remembered how to; however, I found some really old ones I had done in the list (left side when adding to toolbar). These are no longer needed, but still have the old names. How do you reset these so they go back to User Button #X ? I tried adding a few to edit but I wasn't able to right-click / Edit them on the toolbar like other ones.

I ended up removing them from the INI directly via Notepad++ (with backups of course) and restarting XY. It worked, but I know I'm missing something somewhere to easily remove/reset these things.

JLoftus
Posts: 595
Joined: 22 Jan 2014 14:58

Re: [Solved] Current Timestamp Button for Info Panel

Post by JLoftus »

I've always found this one hard to find too....

User -> Manage Commands should be what you are looking for?

jupe
Posts: 3446
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: [Solved] Current Timestamp Button for Info Panel

Post by jupe »

VeeGee wrote:How do you reset these so they go back to User Button #X ?
Add CTB to toolbar, [Ctrl]+RC btn > Edit..., then press Clear btn in dialog.

JLoftus
Posts: 595
Joined: 22 Jan 2014 14:58

Re: [Solved] Current Timestamp Button for Info Panel

Post by JLoftus »

nice tip, thanks. That does require the CTB be added though, the User menu lets you clear out commands without having one added to the toolbar

jupe
Posts: 3446
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: [Solved] Current Timestamp Button for Info Panel

Post by jupe »

The question I was answering had nothing to do with UDC though.

Post Reply