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.


--
Martijn

141 views      
 

Messages in this Thread

 
94,477 Postings in 11,922 Threads, 348 registered users, 7 users online (0 registered, 7 guests)
Index | Admin contact |   Forum Time: Oct 18, 2019 - 12:23 am EDT  |  Hits:28,770,242  (78 Today )
RSS Feed