Page 1 of 1

Script for opening a target folder in a new tab?

Posted: 24 Jul 2023 09:31
by fozzibab
Solution provided, ignore this thread!

Basically I'm just looking to add a button to the toolbar that runs a script when clicked that opens a specific folder (let's call it Z:\Cheese) in a new tab. Since XY doesn't have a simple Chrome-style bookmark bar and probably never will at this rate, this seems like the closest alternative solution (I've tried fiddling with the catalogue, don't like it).

I've been searching for something to work with for hours now with no luck, and I'm hoping someone here could help with it, as I'm pretty much illiterate when it comes to writing scripts.

I did read through this thread (viewtopic.php?t=24408) as well, and you'd think that would have exactly what I'm looking for, but there's nothing there that's usable. Tested the script that's provided with edits that seem correct, but I get syntax errors and can't get the thing working. I don't really know what I'm doing, unfortunately.

Re: Script for opening a target folder in a new tab?

Posted: 24 Jul 2023 09:34
by highend
You get syntax errors from a simple tab("new", "Z:\Cheese");

I doubt that :mrgreen:
if XY just had a bloody Chrome-styled bookmarks/favorite bar
Use the catalog for that?

Re: Script for opening a target folder in a new tab?

Posted: 24 Jul 2023 09:38
by fozzibab
highend wrote: 24 Jul 2023 09:34 You get syntax errors from a simple tab("new", "Z:\Cheese");

I doubt that :mrgreen:
if XY just had a bloody Chrome-styled bookmarks/favorite bar
Use the catalog for that?
That...isn't the script provided in that thread I linked! It's all ass-backwards, no wonder it wasn't working. :oops:

I did attempt to fiddle with the catalogue but it really seems like a convoluted solution for something that's classically just requires a drag-and-drop.

Thanks very much! That's all I needed, I'll delete this now...assuming I can actually do that.

Edit: And...I can't do that.

Re: Script for opening a target folder in a new tab?

Posted: 24 Jul 2023 09:40
by highend
but it really seems like a convoluted solution
The catalog supports drag & drop so it is actually a favorite "bar" (or at least: it can be used as one)

Re: Script for opening a target folder in a new tab?

Posted: 24 Jul 2023 09:42
by fozzibab
highend wrote: 24 Jul 2023 09:40
but it really seems like a convoluted solution
The catalog supports drag & drop so it is actually a favorite "bar" (or at least: it can be used as one)
Hmmm, okay so the problem I guess is that nothing I attempt to drag and drop actually gets dropped. Not sure what I'm doing wrong there, but also there doesn't appear to be a way to make it appear horizontally beneath the address/tool bar. I can separate it from the nav tree to the other side of the screen, though.

Re: Script for opening a target folder in a new tab?

Posted: 24 Jul 2023 09:49
by highend
Animation.gif

Re: Script for opening a target folder in a new tab?

Posted: 24 Jul 2023 09:53
by fozzibab
Understood, I neglected to actually add a category to the catalogue, which prevented my being able to drag stuff to it. Thanks very much! I guess this is the best I can hope for.

Cheers, very helpful!