Feature filename to hide a folder in scripts menu

MCroft

Developer
Staff member
That is indeed what I meant

Very true, that would be very convenient as well. I was originally planning on relying on the authors to trim down the list of scripts (that currently is more than a full screen in height and requires scrolling through)

But having the user able to trim down that list without uninstalling scripts would be great too
So if we use a package manager approach, the scripts wouldn't necessarily appear on the menu at all. We could also add a checkbox to the Script Manager if we wanted to hide things, but the script manager works more like a package manager and doesn't show the subscripts.
 

fronobulax

Developer
Staff member
It might be worth defining the salient characteristics of a "Package Manager" so I can contribute from a position of knowledge rather than impede from a position of ignorance. A package manager to me is basically a way of installing an application that verifies unbundled dependencies are already present or fetches and installs them, as well. If the app is to be launched by a user the installer may create a short cut or add it to an already present launch menu. Packages that have nothing that is intended to be launched by a user don't make launch hooks.

As this discussion evolves I think the original request assumed that a subdirectory, by convention, only contained axillary files that were not not intended to be launched by a user. The request was to exclude those files from a launch menu that was built from a a disk traversal.

If the goal is to declutter one menu then the scriptMRUList already exists and will provide a less cluttered menu.

But the spirit of the OP could also be met by a) creating a way to identify a script as intended to be launched by user action and b) build a menu that only contained scripts marked as intended to be launched by user action.

We have ideas for a JSON format that could drive building a menu. We could assume that all script files in the top level of a third party local repository were user launchable so we could provide hooks to add or delete JSON data when a third party is installed or removed. Since the scriptMRU already has hooks to scripts that are run by users we can automatically add them to the menu when run. We could finally implement a Refresh option that confirmed everything in a local repository was in the JSON file (and added it if not) and that verified that a script mentioned in the JSON file existed and removed if from the file if not.

That sounds like small, manageable chunks that move us in the right direction and can be agreed upon or refined.
 

MCroft

Developer
Staff member
If the goal is to declutter one menu then the scriptMRUList already exists and will provide a less cluttered menu.
The scriptMRU list has significant issues that make it difficult for certain users. Sub-scripts run by Autoscend (autoscend_pre) and and scripts which require parameters are placed on it, unwanted. Because it is a stack, there is no position on the list that is consistent run-to-run as the items move about as new (possibly inappropriate) scripts are added. That kills muscle memory. It can only be edited by changing the list in a pref and it doesn't stay the way you set it. If it's set to a small enough threshold that it's a usable size, the unrunnable scripts push the valuable scripts off too soon. For me, it fails to declutter the menu, it just clutters it differently.

I tried it, as suggested, and I turned it off when I'd observed the issues above.

I understand that it is a viable solution for some people, and that's why I'm suggesting we have a "Recent Scripts" menu item, like many other apps.
 
Top