Automatically start with an existing tabset

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
tealduck
Posts: 10
Joined: 11 Sep 2014 16:35

Automatically start with an existing tabset

Post by tealduck »

Can someone please help with me getting my tabset to always load when I start XY using a command line?

I have a tabset called "Remote", so I have tried the following with no luck:
xyplorer /script="::tabset(load, 'Remote', a);"
xyplorer /script="::tabset(load, 'Remote', 1);"
xyplorer /script="::tabset(open, 'Remote', 1);"
xyplorer /script="::tabset(open, 'Remote', a);"

None of them seem to work correctly or prompt me for a tabset (which is really just a sub-directory under the main tabset directory).

I am not even sure that the tabset that was created by XY is even valid although if I select it from Open it will work.

Any help would be appreciated.

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Automatically start with an existing tabset

Post by highend »

xyplorer /script="::text tabset('load', 'Remote');"
Works fine on my system. It'll immediately show you from which folder the tabset was loaded.

XY version, OS?

1.) Show the output of the text box after starting XY with that command above
2.) Show the content of the [History] section of the pane.ini file from that directory
3.) Show a screenshot of your tabs after closing the textbox
One of my scripts helped you out? Please donate via Paypal

tealduck
Posts: 10
Joined: 11 Sep 2014 16:35

Re: Automatically start with an existing tabset

Post by tealduck »

XYPlorer 17.00.0100
Windows 8.0

I do get a dialog that says "XYPlorer" upon opening. It contains the directory to the tabset: C:\Users\Keith\AppData\Roaming\XYplorer\Panes\Remote\

Not comfortable with the history request, but if you think something in there is causing an issue I can certainly clear that.

Thank you for assisting me.
To see the attached files, you need to log into the forum.

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Automatically start with an existing tabset

Post by highend »

Not comfortable with the history request
That sections contains the paths that the tabset will open

Code: Select all

tabset('load', 'Remote');
When you execute this from the address bar, the tabset is loaded correctly?
One of my scripts helped you out? Please donate via Paypal

tealduck
Posts: 10
Joined: 11 Sep 2014 16:35

Re: Automatically start with an existing tabset

Post by tealduck »

So when I open the program using the command line that was provided. I get the screenshot uploaded earlier. When I then in turn execute the snippet, nothing happens because the current tabset says it is already "Remote".

I cleared the history and then saved the tabset. I have attached the pane.ini file to this post.

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Automatically start with an existing tabset

Post by highend »

I have attached the pane.ini file to this post.
You haven't :ninja:
One of my scripts helped you out? Please donate via Paypal

tealduck
Posts: 10
Joined: 11 Sep 2014 16:35

Re: Automatically start with an existing tabset

Post by tealduck »

Thought I did, My bad.

It doesn't seem to want to upload. Here are the contents:

; XYplorer 17.00.0100 configuration file: panewise settings - pane 1
; Windows 8 Enterprise, 64-bit
; 2016-08-04 09:54:42

[General]
LastVer=17.00.0100
Location=C:\Users\Keith\Favorites
IDDefaultTab=0

[ListBrowse]
Sort=Name,a
Num=2
Style=1143
View=2
Date=0
Time=0
Age=0
Day=0
Columns=Index.56,Path.150,+Name.246,+Ext.43,+Size.56,+Type.151,+Modified.131,+Created.131,Accessed.111,+Attr.78,Len.47,Label.56,Tags.53,Comment.82,Extra 1.64,Extra 2.64,Extra 3.64,Extra 4.64,Extra 5.64,Custom 1.79,Custom 2.79,Custom 3.79,Custom 4.79,Custom 5.79,

[ListFind]
Sort=Name,a
Num=2
Style=1143
View=2
Date=0
Time=0
Age=0
Day=0
Columns=Index.56,+Path.150,+Name.203,+Ext.43,+Size.48,+Type.64,+Modified.124,+Created.124,Accessed.111,+Attr.75,Len.47,Label.56,Tags.53,Comment.82,Extra 1.64,Extra 2.64,Extra 3.64,Extra 4.64,Extra 5.64,Custom 1.79,Custom 2.79,Custom 3.79,Custom 4.79,Custom 5.79,

[ListDrives]
Sort=Name,a
Num=5
Style=1143
View=8
Date=0
Time=0
Age=0
Day=0
Columns=Index.56,+Name.250,+Type.105,+Total Size.79,+Used Space.79,+Free Space.79,+Free %.57,+Per Cluster.70,+Vol Serial.68,+File System.78,Full %.64,

[ListNetwork]
Sort=Name
Num=0
Style=1143
View=0
Date=0
Time=0
Age=0
Day=0
Columns=56,+.200,+.200

[ListRecycler]
Sort=Name,a
Num=2
Style=1143
View=0
Date=0
Time=0
Age=0
Day=0
Columns=Index.56,+Name.161,Ext.32,+Original Location.222,+Deleted.125,+Size.68,+Type.128,+Modified.131,Created.111,Accessed.111,Attr.80,Len.47,+Recycled Name.474,

[ListBrowsePD]
Sort=Name
Num=2
Style=1143
View=0
Date=0
Time=0
Age=0
Day=0
Columns=Index.56,Path.150,+Name.300,+Ext.32,+Size.52,+Type.120,+Modified.111,+Created.111,Attr.80,Len.47,#5.80,#6.86,#7.97,#8.169,#9.73,#10.64,#11.49,#12.59,#13.59,#14.126,#15.98

[ListFindPD]
Sort=Name
Num=2
Style=1143
View=0
Date=0
Time=0
Age=0
Day=0
Columns=Index.56,+Path.150,+Name.300,+Ext.32,+Size.52,+Type.120,+Modified.111,+Created.111,Attr.80,Len.47,#5.80,#6.86,#7.97,#8.169,#9.73,#10.64,#11.49,#12.59,#13.59,#14.126,#15.98

[ListDrivesPD]
Sort=Name,a
Num=2
Style=1143
View=0
Date=0
Time=0
Age=0
Day=0
Columns=Index.56,+Name.121,+Type.54,+Total Size.89,+Free Space.89,+Full %.60,Free %.63,

[Tabs]
Version=3
LastTab=0
MRU=ACB
Count=3
I1=1
C1=Favorites
D1=C:\Users\Keith\Favorites
A1= 0 Index.56,Path.150,+Name.246,+Ext.43,+Size.56,+Type.151,+Modified.131,+Created.131,Accessed.111,+Attr.78,Len.47,Label.56,Tags.53,Comment.82,Extra 1.64,Extra 2.64,Extra 3.64,Extra 4.64,Extra 5.64,Custom 1.79,Custom 2.79,Custom 3.79,Custom 4.79,Custom 5.79, Name,a 0|C:\Users\Keith\Favorites\_FTTC 0 2 C:\Users\Keith\Favorites\ 1143
B1=
H1=
M1=
I2=2
C2=Documents
D2=C:\Users\Keith\Documents
A2= 0 Index.56,Path.150,+Name.154,+Ext.43,+Size.56,+Type.151,+Modified.131,+Created.131,Accessed.111,+Attr.78,Len.47,Label.56,Tags.53,Comment.82,Extra 1.64,Extra 2.64,Extra 3.64,Extra 4.64,Extra 5.64,Custom 1.79,Custom 2.79,Custom 3.79,Custom 4.79,Custom 5.79, Name,a 0|C:\Users\Keith\Documents\Altova 0 2 C:\Users\Keith\Documents\ 1143
B2=
H2=
M2=
I3=3
C3=Secure
D3=X:\OneDrive - SkyDrive\Secure
A3= 0 Index.56,Path.150,+Name.82,+Ext.43,+Size.56,+Type.151,+Modified.131,+Created.131,Accessed.111,+Attr.78,Len.47,Label.56,Tags.53,Comment.82,Extra 1.64,Extra 2.64,Extra 3.64,Extra 4.64,Extra 5.64,Custom 1.79,Custom 2.79,Custom 3.79,Custom 4.79,Custom 5.79, Name,a 0|X:\OneDrive - SkyDrive\Secure\@Vizient 0 2 X:\OneDrive - SkyDrive\Secure\ 1143
B3=
H3=
M3=

[History]
Count=1
Cur=1
1=C:\Users\Keith\Favorites\
1t=1

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Automatically start with an existing tabset

Post by highend »

Investigating your pane.ini...
One of my scripts helped you out? Please donate via Paypal

tealduck
Posts: 10
Joined: 11 Sep 2014 16:35

Re: Automatically start with an existing tabset

Post by tealduck »

Not sure what you mean by "one path". I see in the [Tabs] section all three tabs in the INI data I submitted.

Testing,
So I actually went down that route you mentioned and created another tabset for testing. Oddly, both tabsets work within the GUI when you choose Open from the menu. If I open my test tabset (while another is open) I get all of the tabs displayed. If I open the "Remote" tabset while the test is active I see all 3 tabs appear. The problem is that I exit the program and come back in using the script. The current tabset is set to "Remote" but it either you the previous screenshot. You can't reopen it because it is current. So you have to open the test, then open the "Remote" and everything is restored.

This behavior also occurs when I exit with the test tabset active. When I come back into the application using the script (adjusted for the test name) I get the same screen. If I do not use the script I see a single tab from the collection when the application starts.

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Automatically start with an existing tabset

Post by highend »

Let me get this straight:

The problem is:
- You can't invoke XY with the (last) tabset that was used when you exit XY -> tabset('revert', ...) could be used
- When you exit XY the current tabs (positions and paths) aren't saved

The problem is not:
- Loading tabsets in general is failing

Tell me the state of these two options:
Configuration | Startup & Exit | Autosave settings after this many minutes
Configuration | Startup & Exit | Save settings on exit

I guess both are off?
One of my scripts helped you out? Please donate via Paypal

Post Reply