Page 1 of 1

How to call "Move To / Favorite Folder"

Posted: 16 Jan 2024 19:46
by MBaas
The option File > "Move/Copy/Backup to" > "Favorite Folder" does not have a menu id, so (according to all I know) it can't be used in a script.
Is there a way to do it anyway?

Re: How to call "Move To / Favorite Folder"

Posted: 16 Jan 2024 20:00
by highend
Only by scripting it, e.g. for the Move To submenu:

Code: Select all

    sendkeys "{DOWN}{RIGHT}{DOWN}{ENTER}";
    #150;
If the timing is bad, e.g. {ENTER} wouldn't work...

Re: How to call "Move To / Favorite Folder"

Posted: 17 Jan 2024 12:51
by klownboy
Maybe I'm out in left field, but I was thinking MBass was looking for the user's Favorite Folders listing to come up (in a popupmenu or inputselect box) and from there you would select the favorite folder in which to move the file(s). That's obviously his place to say.

Re: How to call "Move To / Favorite Folder"

Posted: 17 Jan 2024 12:59
by highend
It was just an example, depending on a previous selection of backup/copy/move he could just adapt the sendkeys call to select the required submenu

If that's not enough he can always recreate the full menu :mrgreen:

Re: How to call "Move To / Favorite Folder"

Posted: 17 Jan 2024 13:53
by MBaas
Yes, but why all that extra work when XY is already able to show the menu? I'm still hoping I can convince Don to add an id to the Favorites menu.

Re: How to call "Move To / Favorite Folder"

Posted: 17 Jan 2024 14:16
by highend
In that case all other entries would need to get an id as well...

Re: How to call "Move To / Favorite Folder"

Posted: 17 Jan 2024 14:33
by MBaas
Ouch - ok, I wasn't aware of that :(