Save Project on Run

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
JackieBlue1970
Posts: 64
Joined: Thu Jan 16, 2020 10:28 pm
Location: Max Meadows, VA USA

Save Project on Run

Post by JackieBlue1970 » Wed Feb 05, 2020 12:08 am

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

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9670
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Save Project on Run

Post by dunbarx » Wed Feb 05, 2020 4:06 am

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

JackieBlue1970
Posts: 64
Joined: Thu Jan 16, 2020 10:28 pm
Location: Max Meadows, VA USA

Re: Save Project on Run

Post by JackieBlue1970 » Wed Feb 05, 2020 3:01 pm

dunbarx wrote:
Wed Feb 05, 2020 4:06 am
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
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.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9842
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Save Project on Run

Post by FourthWorld » Wed Feb 05, 2020 5:03 pm

JackieBlue1970 wrote:
Wed Feb 05, 2020 3:01 pm
dunbarx wrote:
Wed Feb 05, 2020 4:06 am
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
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.
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.

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

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9670
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Save Project on Run

Post by dunbarx » Wed Feb 05, 2020 5:51 pm

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

JackieBlue1970
Posts: 64
Joined: Thu Jan 16, 2020 10:28 pm
Location: Max Meadows, VA USA

Re: Save Project on Run

Post by JackieBlue1970 » Wed Feb 05, 2020 8:21 pm

Thanks everyone. LiveCode is such an interesting (perhaps strange) of regular development and something I don't know how to define!

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9842
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Save Project on Run

Post by FourthWorld » Wed Feb 05, 2020 8:27 pm

JackieBlue1970 wrote:
Wed Feb 05, 2020 8:21 pm
Thanks everyone. LiveCode is such an interesting (perhaps strange) of regular development and something I don't know how to define!
It's definitely uncommon, offering equally uncommon productivity. :)
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

JackieBlue1970
Posts: 64
Joined: Thu Jan 16, 2020 10:28 pm
Location: Max Meadows, VA USA

Re: Save Project on Run

Post by JackieBlue1970 » Thu Feb 06, 2020 12:40 am

FourthWorld wrote:
Wed Feb 05, 2020 8:27 pm
JackieBlue1970 wrote:
Wed Feb 05, 2020 8:21 pm
Thanks everyone. LiveCode is such an interesting (perhaps strange) of regular development and something I don't know how to define!
It's definitely uncommon, offering equally uncommon productivity. :)
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
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9842
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Save Project on Run

Post by FourthWorld » Thu Feb 06, 2020 1:05 am

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

JackieBlue1970
Posts: 64
Joined: Thu Jan 16, 2020 10:28 pm
Location: Max Meadows, VA USA

Re: Save Project on Run

Post by JackieBlue1970 » Thu Feb 06, 2020 3:18 am

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.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9842
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Save Project on Run

Post by FourthWorld » Thu Feb 06, 2020 4:46 am

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

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”