ZTree.com  | ZEN  | About...  

 Index   Back

[Help!] rename function   [Help!]

By: Martijn Coppoolse   Homepage   Voorburg, NL  
Date: Aug 12,2019 at 07:18
In Response to: [Help!] rename function (John Miyamoto)

> The part of the renaming macro that I can't work out is how to have
> the macro ask the user to input the new name of the file. I can hard
> code the new file name into the macro, but obviously this only works for
> one specific file. Is it possible to interrupt a macro to ask the user
> for input, and then to continue processing the macro? I haven't found
> any discussion of a way to get user input in the middle of a macro
> process.

I’m not all that familiar with macro’s, but I don’t think it’s possible to ask for input during a macro.

Why not switch the two actions?

Since [N]ew date selects the current date and time by default, merely having the macro press RETURN will set the selected file’s date to that. Or you could have it press [F6] just to make sure.

So [N]ew date, RETURN, [R]ename would be ‘n,RET,r’, if I’m not mistaken (I didn’t test it). If the macro ends there, you can then rename the file as usual.


Thread locked

Messages in this Thread

95,067 Postings in 11,984 Threads, 350 registered users, 80 users online (1 registered, 79 guests)
Index | Admin contact |   Forum Time: Aug 7, 2020 - 11:40 am EDT  |  Hits:32,931,510  (14,551 Today )
RSS Feed