ALIAS FOR OPENING TWO # TABS ON BOTH PANES

Features wanted...
Post Reply
MCHAL
Posts: 4
Joined: 03 May 2007 17:53
Contact:

ALIAS FOR OPENING TWO # TABS ON BOTH PANES

Post by MCHAL »

Hi there:

Great program. Thanks for your dev efforts!

My question (and feature wish if not implemented yet) is: is it possible to set a single alias for opening two different tabs on both, opposite panes? Like, say, for copying, moving etc. operations in "c:\Program files" and "d:\backup" (this is just an example). This would be quite handy.

Thanks for your attention.

Warm regards.

serendipity
Posts: 3357
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: ALIAS FOR OPENING TWO # TABS ON BOTH PANES

Post by serendipity »

MCHAL wrote:Hi there:

Great program. Thanks for your dev efforts!

My question (and feature wish if not implemented yet) is: is it possible to set a single alias for opening two different tabs on both, opposite panes? Like, say, for copying, moving etc. operations in "c:\Program files" and "d:\backup" (this is just an example). This would be quite handy.

Thanks for your attention.

Warm regards.
Yes, its possible. Define something like this in address bar first:

Code: Select all

@backup=focus p1; goto "c:\Program files"; focus p2; goto "d:\backup";
And anytime you need it, call @backup from addressbar.

MCHAL
Posts: 4
Joined: 03 May 2007 17:53
Contact:

Re: ALIAS FOR OPENING TWO # TABS ON BOTH PANES

Post by MCHAL »

Thanks so much for your attention.

I did just as directed, but, unfortunately, it does not work for me (latest beta).

Thanks again anyway.

admin
Site Admin
Posts: 53274
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: ALIAS FOR OPENING TWO # TABS ON BOTH PANES

Post by admin »

Works fine here. Operator error? What happens when you run @backup through the address bar?

TheQwerty
Posts: 4353
Joined: 03 Aug 2007 22:30

Re: ALIAS FOR OPENING TWO # TABS ON BOTH PANES

Post by TheQwerty »

Note that this will only work if you purchased the Pro license as scripting is not available in the Home edition.

You probably also need to use this instead:

Code: Select all

@backup=::focus p1; goto "c:\Program files"; focus p2; goto "d:\backup";
Note the '::' before the first focus, this informs XY that what follows is a script.


For future reference, there is an INI Tweak 'ScriptSmartDetect' that allows XY to "smartly detect" scripts allowing the user to use them without the '::'.

MCHAL
Posts: 4
Joined: 03 May 2007 17:53
Contact:

Re: ALIAS FOR OPENING TWO # TABS ON BOTH PANES

Post by MCHAL »

TheQwerty wrote:Note that this will only work if you purchased the Pro license as scripting is not available in the Home edition.

You probably also need to use this instead:

Code: Select all

@backup=::focus p1; goto "c:\Program files"; focus p2; goto "d:\backup";
Note the '::' before the first focus, this informs XY that what follows is a script.


For future reference, there is an INI Tweak 'ScriptSmartDetect' that allows XY to "smartly detect" scripts allowing the user to use them without the '::'.
Thanks! It now works! I have a Pro license.

I enabled the option "Quick Scripting" and used the example code above.

Really appreciate your help.

Warm regards.

Post Reply