ZTree.com  | ZEN  | About...  

 Index   Back

[Tip] macro to set date from Other pane and re-sort in one step   [Zeta]

By: Hartmut Schneider     Germany  
Date: Dec 19,2017 at 08:59
In Response to: [Zeta] v2.4.178 Now Available (Kim Henkel)

From v2.4.176, New-date has been enhanced to warn if the current file is protected (readonly/system/hidden).
This is corrupting macros which execute New-date from within the Macro.

Fortunately the F8 Opposite feature (also new) is a good replacement.

Here's my macro 'SetCurDateToOtherPane.ztm'. Basically it only makes sure that both panes are in FW,
prompts me before setting the date, and re-sorts the file list due to the changed date order.


; SetCurDateFromOtherPane.ztm
; author: Hartmut 2005-06-07
; 2017-12-19 Since v2.4.176, New-date protection may cause Override Prompt if Other file is protected.
; Fortunately the new F8 Opposite feature is usable -> Now using F8 Opposite
; Security directives
,STOP_ON_ERROR,
f,** 1st pane Must be in FW **,,STOP_IF_DW,,STOP_IF_DMODE,,ESC,
f,** Must be in Split Mode **,,STOP_IF_UNSPLIT,,ESC,
; destination file = current file in Other pane
TAB,
f,** 2nd pane Must be in FW **,,STOP_IF_DW,,STOP_IF_DMODE,,ESC,
; back to first pane
TAB,
; fetch source's date ** using new 'F8 Opposite' **
n,F8,
; PAUSE for security/caution
PAUSE,
; EXECUTE (set source's date to destination file)
RET,
; re-sort file list - shows position after date change.
ALT_S,RET,

Best regards,
Hartmut
1,016 views      
Thread locked
 

Messages in this Thread

 
96,637 Postings in 12,231 Threads, 350 registered users, 73 users online (0 registered, 73 guests)
Index | Admin contact |   Forum Time: Mar 29, 2024 - 1:29 pm UTC  |  Hits:62,407,536  (22,322 Today )
RSS Feed