Page 1 of 1

Where is my library of general-purpose scripts stored?

Posted: Thu Aug 08, 2024 4:01 am
by almaxen
Hi I'm a new member!
I have a general purpose stack that I use for the most of my programming, with the command'start using stack "scripts. livecode"'. It is in one of my Livecode-related folders. Since 2001 (or so, IIRC), I've switched Macs and reorganized my Rev/LC folders. I now have approximately twenty variants of that stack:cry: .
When I rearrange my files and folders, my old stacks no longer work since they cannot find the stack "scripts" due to pathname changes.
If I keep a copy near each of my stacks and use relative pathnames, it would be a 'bread crumbs' method with dozens/hundreds of duplicates. I would rather put it in a permanent location once and for all. Is there one place that stands out above the rest? I've considered using the Livecode folder in Applications, but don't want to leave a stack there. Another option is the 'Development > Objects Library', but I'm unable to add anything there. Can I add a script or stack?
- Anywhere else?
- Alternatively, a fixed folder can be used, but the issue remains.
I believe most others here have solved the same problem, but I missed the correct way!

Re: Where is my library of general-purpose scripts stored?

Posted: Thu Aug 08, 2024 9:55 am
by stam
almaxen wrote:
Thu Aug 08, 2024 4:01 am
Hi I'm a new member!
I have a general purpose stack that I use for the most of my programming, with the command'start using stack "scripts. livecode"'. It is in one of my Livecode-related folders. Since 2001 (or so, IIRC), I've switched Macs and reorganized my Rev/LC folders. I now have approximately twenty variants of that stack:cry: .
When I rearrange my files and folders, my old stacks no longer work since they cannot find the stack "scripts" due to pathname changes.
If I keep a copy near each of my stacks and use relative pathnames, it would be a 'bread crumbs' method with dozens/hundreds of duplicates. I would rather put it in a permanent location once and for all. Is there one place that stands out above the rest? I've considered using the Livecode folder in Applications, but don't want to leave a stack there. Another option is the 'Development > Objects Library', but I'm unable to add anything there. Can I add a script or stack?
- Anywhere else?
- Alternatively, a fixed folder can be used, but the issue remains.
I believe most others here have solved the same problem, but I missed the correct way!
Hi almaxen,
I personally use a 'Developer" folder that resides in my ~/Users/stam/Documents/ folder, and as am on MacOS, this is synced to iCloud and available on any device I've logged in with my iCloud account or via web interface if I haven't (any platform).

Others I believe use a dropbox folder for the same goal - in other words a cloud based folder to host such things makes it available everywhere (same goes for plugins etc). It does mean you need to use

Code: Select all

start using stack <path to stack> ## rather than "start using <stack name>"
Note that this kind of folder is only helpful for stacks and scripts that are completely solution-independent...

S.

Re: Where is my library of general-purpose scripts stored?

Posted: Fri Jul 25, 2025 11:05 am
by thiery
Makes sense to keep the stack in a fixed cloud-synced folder like Documents or Dropbox. That way it stays accessible and avoids creating unnecessary duplicates across projects. Using the full path with start using stack seems like the most reliable approach in this case.