Save source code in same folder as Standalone

Something you want to see in a LiveCode product? Want a new forum set up for a specific topic? Talk about it here.

Moderator: Klaus

Post Reply
AndyP
Posts: 634
Joined: Wed Aug 27, 2008 12:57 pm
Contact:

Save source code in same folder as Standalone

Post by AndyP » Fri Sep 06, 2013 4:02 pm

When you choose to 'Save as standalone application' I would love to have the option of not only saving the source code back to where it was opened (as it is now) but also to have an additional copy saved alongside the compiled application file(s).

This I believe makes it easier to track back to a build if a problem occurs but also provides a psudo versioning method.

Any thoughts?
Andy .... LC CLASSIC ROCKS!

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Save source code in same folder as Standalone

Post by FourthWorld » Fri Sep 06, 2013 4:43 pm

The IDE sends two messages when building a standalone: SavingStandalone is sent just before the build, and StandaloneSaved is sent after the build. Using these messages will allow you script nearly any solution you'd like for versioning or backup.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

AndyP
Posts: 634
Joined: Wed Aug 27, 2008 12:57 pm
Contact:

Re: Save source code in same folder as Standalone

Post by AndyP » Fri Sep 06, 2013 4:50 pm

Thank's Richard,

I learn something new each day.. I'll work on a plugin for this feature.

But it would still be nice to have this as a standard preferences option.
Andy .... LC CLASSIC ROCKS!

AndyP
Posts: 634
Joined: Wed Aug 27, 2008 12:57 pm
Contact:

Re: Save source code in same folder as Standalone

Post by AndyP » Tue Sep 10, 2013 4:50 pm

Ok starting to paly with the standaloneSaved command

The dictionary has this:

Syntax:
standaloneSaved folderSavedIn

Parameters:
folderSavedIn is a string variable containing the folder that the standalone application was saved in.

Example app is named "CodeSave"
However if you saved the standalone in C:\MyApps\Test then folderSavedIn would report C:\MyApps\Test which is incorrect. It should be C:\MyApps\Test\CodeSave with subsequent stanalone saves should be C:\MyApps\Test\CodeSave1 , C:\MyApps\Test\CodeSave2 etc

Is this a bug or am I understanding this the wrong way?
Andy .... LC CLASSIC ROCKS!

Post Reply