Save Project on Run
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 64
- Joined: Thu Jan 16, 2020 10:28 pm
- Location: Max Meadows, VA USA
Save Project on Run
Is there any setting within the development environment where you can autosave on run? I couldn't find anything in preferences or googling around. TIA. JackieBlue
-
- VIP Livecode Opensource Backer
- Posts: 9670
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Save Project on Run
Save on run?
Do you mean save while a handler is running? If so, then yes, just embed the "save" command wherever you like.
Craig
Do you mean save while a handler is running? If so, then yes, just embed the "save" command wherever you like.
Craig
-
- Posts: 64
- Joined: Thu Jan 16, 2020 10:28 pm
- Location: Max Meadows, VA USA
Re: Save Project on Run
Thanks for your response Craig. What I am trying to do is to have the development environment automatically save the stack when you go from editing to running. Just trying to save myself from bad habits (not saving). I have had couple instances where I get caught in a loop or start a process where the CMD "." doesn't exit out and I end up having to restart LiveCode.
-
- VIP Livecode Opensource Backer
- Posts: 9842
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Save Project on Run
LiveCode has no traditional edit->compile cycle. It's truly live code. There are tools for handling layout tasks, but some apps also provide layout tools so it's not like those are somehow not part of the language.JackieBlue1970 wrote: ↑Wed Feb 05, 2020 3:01 pmThanks for your response Craig. What I am trying to do is to have the development environment automatically save the stack when you go from editing to running.
Without the old-school distinction between "editing" and "running", perhaps a simple periodic autosave would work for you.
This plugin offers that, along with storing multiple versions as you go:
http://livecodeshare.runrev.com/stack/799/Auto-backups
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- VIP Livecode Opensource Backer
- Posts: 9670
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Save Project on Run
Ah. That is what "run" means.
There are messages sent when you change tools. "Focus in", "Focus out", "Suspend stack", "Resume stack", etc. You might be able to trap one of those in the right place, and with a check on the state of "the tool", make your own gadget.
Craig
There are messages sent when you change tools. "Focus in", "Focus out", "Suspend stack", "Resume stack", etc. You might be able to trap one of those in the right place, and with a check on the state of "the tool", make your own gadget.
Craig
-
- Posts: 64
- Joined: Thu Jan 16, 2020 10:28 pm
- Location: Max Meadows, VA USA
Re: Save Project on Run
Thanks everyone. LiveCode is such an interesting (perhaps strange) of regular development and something I don't know how to define!
-
- VIP Livecode Opensource Backer
- Posts: 9842
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Save Project on Run
It's definitely uncommon, offering equally uncommon productivity.JackieBlue1970 wrote: ↑Wed Feb 05, 2020 8:21 pmThanks everyone. LiveCode is such an interesting (perhaps strange) of regular development and something I don't know how to define!
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- Posts: 64
- Joined: Thu Jan 16, 2020 10:28 pm
- Location: Max Meadows, VA USA
Re: Save Project on Run
I agree. As an experienced developer I’ve been pleased how fast I’ve been able to do something’s. Not having to load frameworks and libraries makes a big difference. Stuff works even if a bit differently. I started looking at LiveCode because I got tired of all the issues trying to make Django work for my business apps.FourthWorld wrote: ↑Wed Feb 05, 2020 8:27 pmIt's definitely uncommon, offering equally uncommon productivity.JackieBlue1970 wrote: ↑Wed Feb 05, 2020 8:21 pmThanks everyone. LiveCode is such an interesting (perhaps strange) of regular development and something I don't know how to define!
-
- VIP Livecode Opensource Backer
- Posts: 9842
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Save Project on Run
That's an interesting case. Are you using LC Server, or have you migrated your Django stuff to native apps?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- Posts: 64
- Joined: Thu Jan 16, 2020 10:28 pm
- Location: Max Meadows, VA USA
Re: Save Project on Run
I wrote some server stuff in Python but wanted to do some other things with a user interface. I tried Django but ran into a lot of issues running in a virtual environment. I considered .Net but the newest framework was confusing as hell and all my old code (VB 2012) was breaking. I really want simplicity as I only program apps for my business at this point. At the moment it is just a desktop app and then I will see about how I want to deployment. The app I am writing now takes either an inputed sku or UPC code against a database which returns the suppliers that carry the item, pricing, quantity price break, and whether they have a shipping program. It will have a bulk function where a CSV is uploaded, processed, and returns the same information. I will add an admin card to enter and correct data.
-
- VIP Livecode Opensource Backer
- Posts: 9842
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Save Project on Run
Sounds like a fun and useful project. Keep us posted if we can be of further help moving it along smoothly.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn