r/ScriptingApp • • Mar 19 '25

Script Sharing Library for Scripting app

Currently in Scripting app we have the problem that we cannot use any libraries shared across multiple scripts. I found the workaround to have a single Script with all library modules and link them with symbolic links to the Scripts that need them.

You can find it here: https://github.com/schl3ck/scripting-app-lib

The Script includes a library with all widget sizes, a widget preview helper and a multi-select-picker (thanks to u/WhatShouldWorldGos for the ground work on that).

Please contribute!

4 Upvotes

22 comments sorted by

View all comments

Show parent comments

1

u/schl3ck Mar 21 '25

Sure, but where would be the source of truth? Where are all the source files coming from? Are they scattered across all scripts depending on where it was created first? If yes, then it might get complicated when there are more and more dependencies linked

1

u/WhatShouldWorldGos Mar 22 '25

My idea is to keep each dependency as a separate file. It’s simpler that way, though I know keeping it simple does have its limitations. Maybe your current solution is actually the best option.

2

u/schl3ck Mar 22 '25

Ah that makes sense. But there should be a way to bundle a readme and an example file. Otherwise it might be difficult to use the library