Creating a new tab with a different "view"

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
amirvf
Posts: 133
Joined: 18 Oct 2020 00:46

Creating a new tab with a different "view"

Post by amirvf »

Hi,

The current tab in XY has the following properties:
Folder: C:\Photos
View: Thumbnails #3 (450x450) -#308
Column layout: Photo

I want to write a script to make and switch to a new tab with the following properties:
Folder: C:\Downloads
View: Details -#302
Column layout: General

Here is my script:

Code: Select all

 tab("new", "C:\Downloads");
 #302;
 columnlayout("General");
Above script makes a new tab with my desired properties. However, it has a big issue.
After the new tab is created, since the first tab has the view of "Thumbnails #3 (450x450) -#308", it starts to create thumbnails for all files in the newly created tab which is not needed and it takes a long time. After all the thumbnails are created, then it changes the view to "Details -#302". On the other hand, I want to keep the view of the first tab as "Thumbnails #3 (450x450) -#308".

Does anyone have a suggestion on how to resolve this issue?

Thanks,
Amir

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Creating a new tab with a different "view"

Post by highend »

Code: Select all

    tab("new", "C:\Downloads|xxx*");
    #302;
    #355;
    columnlayout("General");
?
One of my scripts helped you out? Please donate via Paypal

amirvf
Posts: 133
Joined: 18 Oct 2020 00:46

Re: Creating a new tab with a different "view"

Post by amirvf »

Excellent job!

Post Reply