You got my hopes up there Eternal, alas XnView doesn't write DNG, only read :/ Not even their pay-for XnViewMP.
I'm glad that my little diversion has helped improve your script though (through others' expertise)
[Script] TimeSync 1.1 Beta2 - January 8, 2015
-
- Posts: 744
- Joined: 28 Jul 2006 13:15
- Location: Kent, UK
- Contact:
Re: [Script] TimeSync 1.1 Beta2 - January 8, 2015
Used to update to the latest beta every day. Now I have children instead…
Windows 10 Pro x64 (everywhere except phone…)
Windows 10 Pro x64 (everywhere except phone…)
-
- Posts: 744
- Joined: 28 Jul 2006 13:15
- Location: Kent, UK
- Contact:
Re: [Script] TimeSync 1.1 Beta2 - January 8, 2015
Actually I have a feature request, if you would be so kind:
Copy and paste timestamps.
It would work something like this; select a file, activate the script (however you choose), be presented with a popup menu have two new options "Copy timestamp" and "Paste timestamp (v)".
Both of those two options would have the following suboptions:
Copy/paste timestamp:
I'd also find this useful occasionally when I'm referring someone to a particular file and mentioning the modified date (it comes up, what can I say). Just beaing able to Shift+D, c, m and the Ctrl+V in Skype would be a real boon.
Copy and paste timestamps.
It would work something like this; select a file, activate the script (however you choose), be presented with a popup menu have two new options "Copy timestamp" and "Paste timestamp (v)".
Both of those two options would have the following suboptions:
Copy/paste timestamp:
- everything
- created
- modified
- accessed
- select a file in the list view
- Shift+D – activate the script and popup the menu
- c – activate the copy menu
- e – copy all of the selected file's date metadata and hide the script menu
- select the file you want to change the date on
- Shift+D – activate the script and popup the menu
- v – activate the paste menu
- e – copy all of the selected file's date metadata and hide the script menu
I'd also find this useful occasionally when I'm referring someone to a particular file and mentioning the modified date (it comes up, what can I say). Just beaing able to Shift+D, c, m and the Ctrl+V in Skype would be a real boon.
Used to update to the latest beta every day. Now I have children instead…
Windows 10 Pro x64 (everywhere except phone…)
Windows 10 Pro x64 (everywhere except phone…)
-
- Posts: 744
- Joined: 28 Jul 2006 13:15
- Location: Kent, UK
- Contact:
Re: [Script] TimeSync 1.1 Beta2 - January 8, 2015
Wow Don. Looks like you just gave us all the tools required for my little ditty above! http://www.xyplorer.com/release_15.00.htm see the "Timestamping" section.
Thank you so much, this is amazing.
(so is the quick select btw, these two changes are massive for me, so again thanks )
Thank you so much, this is amazing.
(so is the quick select btw, these two changes are massive for me, so again thanks )
Used to update to the latest beta every day. Now I have children instead…
Windows 10 Pro x64 (everywhere except phone…)
Windows 10 Pro x64 (everywhere except phone…)
-
- Posts: 744
- Joined: 28 Jul 2006 13:15
- Location: Kent, UK
- Contact:
Re: [Script] TimeSync 1.1 Beta2 - January 8, 2015
[Split]
I'm struggling with the syntax of the new timestamp scripting and I can't find a full explanation of the various options – I'm obviously looking in the wrong place. Please could you point me in the right direction? I'm trying to figure out how to copy various timestamps into the clipboard.
Thanks
Haha, whoops, sorry, that's how I read it.admin wrote:Hmm, "Quick Select", that would have probably a better name than "Flat Select"...
I'm struggling with the syntax of the new timestamp scripting and I can't find a full explanation of the various options – I'm obviously looking in the wrong place. Please could you point me in the right direction? I'm trying to figure out how to copy various timestamps into the clipboard.
Thanks
Used to update to the latest beta every day. Now I have children instead…
Windows 10 Pro x64 (everywhere except phone…)
Windows 10 Pro x64 (everywhere except phone…)
Re: [Script] TimeSync 1.1 Beta2 - January 8, 2015
// back on-topic...
Give these a try:lukescammell wrote:Haha, whoops, sorry, that's how I read it.
I'm struggling with the syntax of the new timestamp scripting and I can't find a full explanation of the various options – I'm obviously looking in the wrong place. Please could you point me in the right direction? I'm trying to figure out how to copy various timestamps into the clipboard.
Thanks
Code: Select all
"Copy Selected Items' Time(s) : copySelTime"
Global $G_ITEMS = Get('SelectedItemsPathNames', '|');
Sub '_copyTime';
"Copy Focus Item's Time(s) : copyFocTime"
Global $G_ITEMS = <focitem>;
Sub '_copyTime';
"-" //--------------------------------------------------------------------------
"Paste Copied Time(s) : pasteTime"
// Prompt user to select time to paste (just assuming clipboard has valid times).
// 4 = Show empty list.
// 32 = Select first item.
// 64 = Focus filter.
$time = InputSelect('Select time to paste', <clipboard>, <crlf>, 4+32+64);
End $time == '', 'No time selected.';
// Prompt user to select fields to modify.
Global $G_FIELDS;
Sub '_fieldPrompt';
End $G_FIELDS == '', 'No fields selected.';
TimeStamp $type, $time;
"Paste Copied Item's Time : pasteItemTime"
// Prompt user to select item to use as source of times (again just assuming clipboard is items).
// 1 = Show icons.
// 4 = Show empty list.
// 32 = Select first item.
// 64 = Focus filter.
$item = InputSelect('Select source item', <clipboard>, <crlf>, 1+4+32+64);
End $item == '', 'No source item selected.';
// Prompt user to select fields to modify.
Global $G_FIELDS;
Sub '_fieldPrompt';
End $G_FIELDS == '', 'No fields selected.';
TimeStamp $G_FIELDS, $item,, '*';
"- : _-" //---------------------------------------------------------------------
"- : _-" //---------------------------------------------------------------------
"Copy Item Time(s)||4 : _copyTime"
Global $G_ITEMS;
End $G_ITEMS == '', 'Global variable G_ITEMS cannot be empty.';
$format = 'yyyy-mm-dd hh:nn:ss';
// Get times.
$list = Report("+{Created $format}|+{Modified $format}|+{Accessed $format}|", $G_ITEMS);
// Sort and remove duplicates.
$list = FormatList($list, 'dents', '|');
// Prompt user to select the times to copy.
// 2 = Show checkboxes.
// 4 = Show empty list.
// 16 = Allow re-ordering items.
// 32 = Select first item.
$list = InputSelect('Select times to copy', $list, '|', 2+4+16+32);
End $list == '', 'Nothing selected to copy.';
CopyText $list,, '|';
"Time Fields to Modify Prompt||4 : _fieldPrompt"
Global $G_FIELDS = '';
// Prompt user to select fields to modify.
// 2 = Show checkboxes.
// 4 = Show empty list.
// 32 = Select first item.
$G_FIELDS = InputSelect('Select fields to modify', '+Created|+Modified|+Accessed', '|', 2+4+32);
// Trim to first characters, remove '|', and lower case.
$G_FIELDS = Recase(Replace(RegexMatches($G_FIELDS, '(?:^|\|).'), '|'), 'lower');
Re: [Script] TimeSync 1.1 Beta2 - January 8, 2015
1) Copy file time stamps (A.rar, C.txt, D.pdf)
2) Paste timestamps to another files (q.7z, x.wmv, z.dll)
A.rar ---> q.7z
C.txt ---> x.wmv
D.pdf ---> z.dll
Code: Select all
After copy paste operation...
File Timestamps
----- -------------------
A.rar Preserved
C.txt Preserved
D.pdf Preserved
q.7z A.rar's timestamps
x.wmv C.txt's timestamps
z.dll D.pdf's timestamps
Sorry for bad English and thanks for reading.
Re: [Script] TimeSync 1.1 Beta2 - January 8, 2015
I'm sorry but even if this was possible, how would one (obviously apart from you) keep track of the order of files selected in each pane?
Ralph
(OS: W11 22H2 Home x64 - XY: Current beta - Office 2019 32-bit - Display: 1920x1080 @ 125%)
(OS: W11 22H2 Home x64 - XY: Current beta - Office 2019 32-bit - Display: 1920x1080 @ 125%)
Re: [Script] TimeSync 1.1 Beta2 - January 8, 2015
Code: Select all
$sel1 = get("SelectedItemsPathNames", <crlf>, 1);
$sel2 = get("SelectedItemsPathNames", <crlf>, 2);
$cntSel1 = gettoken($sel1, "count", <crlf>);
end (!$sel1 || !$sel2), "No item(s) selected in at least one pane, aborted!";
end ( $cntSel1 != gettoken($sel2, "count", <crlf>)), "Number of selection mismatch, aborted!";
while ($i++ < $cntSel1) { timestamp , gettoken($sel1, $i, <crlf>), gettoken($sel2, $i, <crlf>); }
One of my scripts helped you out? Please donate via Paypal
Re: [Script] TimeSync 1.1 Beta2 - January 8, 2015
@highend
It's working, thank you very much.
The script pastes the timestamps the way we sort the files.
If we select same files on both panes and sort files by size on the right pane (Folder2) timestamp transfer will be like this:
Sorry for bad English, I hope I was able to explain.
It's working, thank you very much.
Thanks for your comment.
The script pastes the timestamps the way we sort the files.
If we select same files on both panes and sort files by size on the right pane (Folder2) timestamp transfer will be like this:
Code: Select all
A.rar ---> x.wmv (19.021 KB)
C.txt ---> q.wmv (7.490 KB)
D.pdf ---> z.dll (54 KB)
Re: [Script] TimeSync 1.1 Beta2 - January 8, 2015
If we are talking about selecting the "same" files in both panes then your example filenames don't show this.
I can see the use of such script to re-create file dates that were changed unwillingly (e.g. not preserved on a copy or backup) but in your example file names there seems to be no correlation whatsoever between the files the dates are copied between (different names as well as extensions).
I can see the use of such script to re-create file dates that were changed unwillingly (e.g. not preserved on a copy or backup) but in your example file names there seems to be no correlation whatsoever between the files the dates are copied between (different names as well as extensions).
Ralph
(OS: W11 22H2 Home x64 - XY: Current beta - Office 2019 32-bit - Display: 1920x1080 @ 125%)
(OS: W11 22H2 Home x64 - XY: Current beta - Office 2019 32-bit - Display: 1920x1080 @ 125%)