Possible create script that (1)Copy tab name;(2)Open dialog Rename Tab;(3)Paste tab name?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
cadu
Posts: 233
Joined: 18 Mar 2012 21:50

Possible create script that (1)Copy tab name;(2)Open dialog Rename Tab;(3)Paste tab name?

Post by cadu » 22 Feb 2019 01:15

Hi,
Is it possible to create a script that (1)Copy tab name;(2)Open dialog Rename Tab;(3)Paste tab name?
Yes? How to?
Many thanks for the info!
XYplorer_2019-02-21_21-11.png
XYplorer_2019-02-21_21-11.png (29.77 KiB) Viewed 144 times

jupe
Posts: 1157
Joined: 20 Oct 2017 21:14
Location: 1903 x64

Re: Possible create script that (1)Copy tab name;(2)Open dialog Rename Tab;(3)Paste tab name?

Post by jupe » 22 Feb 2019 02:38

Isn't the dialog in your screenshot already prefilled with the current tab name already?, or when you say paste tab name you are just trying to remove the "D: " prefix?

Anyway while probably possible to do it the way you have requested, in my opinion the more correct way would be re-creating the input dialog yourself and entering the old tab name directly (so no clipboard involved). So if you look up these 2 commands in the help file and read up about them you should be able to do what you want.

input()
tab()

with tab() you can get the old title, and perform the rename, and you can make input() look very similar to the inbuilt dialog, and you can pre-fill it with the current title you retrieved with tab(), or if you know the title you want beforehand then you can rename it directly without the input dialog even appearing.

cadu
Posts: 233
Joined: 18 Mar 2012 21:50

Re: Possible create script that (1)Copy tab name;(2)Open dialog Rename Tab;(3)Paste tab name?

Post by cadu » 22 Feb 2019 12:25

jupe wrote:
22 Feb 2019 02:38
Isn't the dialog in your screenshot already prefilled with the current tab name already?, or when you say paste tab name you are just trying to remove the "D: " prefix?
I filled the name manually. It was just to simulate what I needed.

Many thanks for the directions!

Post Reply