Greetings Opus Comrades!
I have filenames with date time stamps in them and I often extract the timestamp only with this nifty internal command in a filetype context menu:
Clipboard COPYNAMES FILE REGEXP (\d\dh\d\dm) \1
So far so good.
If I select 2 files, for example
2020-10-10 18h33m129 Maxalt 0.5.jpg 2020-10-10 18h33m128 Maxalt 0.5.jpg
Then both timestamps are copied to the clipboard with a CR ie this appears in the clipboard:
I want to select 2 files and then only copy the bottom timestamp to the clipboard.
I want in the sample above to have only this in the clipboard:
How do I do that?
The reason is after I have copied the timestamp I paste it into a spreadsheet I then add a prefix to both files to show they have been processed.
A bit involved to explain more fully than that I can do if anyone wants.
Back to the problem.
Somehow I need to get rid of all the lines in the clipboard accept the last line.
If I could think up a very fancy regex that filters out all but the last timestamp?
I am not sure of the mechanics of the COPYNAME switch - does that make the command act once on ever selected file?
Not sure hope to tackle with internal commands.
Would it be necessary to use a script?
Any views muchly appreciated....