Page 1 of 1

ALIAS FOR OPENING TWO # TABS ON BOTH PANES

Posted: 29 Jun 2010 14:31
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.

Re: ALIAS FOR OPENING TWO # TABS ON BOTH PANES

Posted: 29 Jun 2010 15:50
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.

Re: ALIAS FOR OPENING TWO # TABS ON BOTH PANES

Posted: 29 Jun 2010 19:47
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.

Re: ALIAS FOR OPENING TWO # TABS ON BOTH PANES

Posted: 29 Jun 2010 19:58
by admin
Works fine here. Operator error? What happens when you run @backup through the address bar?

Re: ALIAS FOR OPENING TWO # TABS ON BOTH PANES

Posted: 29 Jun 2010 20:06
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 '::'.

Re: ALIAS FOR OPENING TWO # TABS ON BOTH PANES

Posted: 29 Jun 2010 21:50
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.