save command and standalone

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
pascalh4
Posts: 81
Joined: Thu Aug 22, 2013 12:50 pm

save command and standalone

Post by pascalh4 » Fri Apr 24, 2015 11:21 pm

Hello.
I did a test with save command.
All is correct :
The filepath is repected.
My stack is copied with all changes.
I can modify this new stack.

But when I create a standalone application, the save command doesn't work.

How do I make my save into a standalone application?

Is it possible in the same way as in build mode?

Thank you to direct me to the good way.

Pascal

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: save command and standalone

Post by Simon » Sat Apr 25, 2015 3:39 am

Hi Pascal,
A standalone cannot save changes to itself. Once as an .exe or .app the file is locked.

You'll need another method e.g. Splash stack;
http://lessons.runrev.com/m/4071/l/1737 ... pplication
Now that one mentions custom properties but it's not just related to them, almost anything can be changed and saved.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

pascalh4
Posts: 81
Joined: Thu Aug 22, 2013 12:50 pm

Re: save command and standalone

Post by pascalh4 » Tue Apr 28, 2015 4:07 pm

Hi Simon

First thank you to your answer.
The link method works perfectly. :D
I put a lot of time answering because I meet another problem.

I built a standalone launcher that clone, rename a folder and run an application containing a stack and an other standalone launcher.
I make modifications in many cards (new folder)
I close application and run with the standalone launcher in this folder. All is saved and I can also modify cards, create new cards and so on. Good.

BUT if I use button that runs a script, that changes folder name, then I can't create new cards. :?: :?:
I did a test by manualy changing the name and everything works.
Yet used script seems to me correct.

Code: Select all

rename folder "  " to " "&" "
An idea perhaps?

Pascal

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: save command and standalone

Post by Simon » Tue Apr 28, 2015 10:03 pm

Hi Pascal,
One thing to be aware of, this method might not pass iOS rules. If you are building for iPhone someone else has to answer if they were able to get the splash stack method into iTunes.

OK to your problem, I'm pretty sure you can not rename a folder that has a running stack in it (if that is what you are doing?). I think you will have to explain a little more before I can give you much help.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

pascalh4
Posts: 81
Joined: Thu Aug 22, 2013 12:50 pm

Re: save command and standalone

Post by pascalh4 » Fri May 01, 2015 7:33 pm

Hello Simon,
My OS is Windows.
You are right. I wanted launched to an open stack.
I didn't know that it was impossible.
I bypassed this by creating another stack to rename. It works.

Thank you for your help.

I almost finish my test but I think it might be simpler. Can I have your opinion if I transmit you my work.
If so, how to transmit? Link to the Cloud or other?
Pascal

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: save command and standalone

Post by Simon » Fri May 01, 2015 8:16 pm

Hi Pascal,
Sure I'll take a look at the stack.
You'll have to zip it and upload via the "Upload Attachment" tab at the bottom of the "Post Reply" page.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

pascalh4
Posts: 81
Joined: Thu Aug 22, 2013 12:50 pm

Re: save command and standalone

Post by pascalh4 » Sun May 03, 2015 5:02 pm

Hello Simon.
Thank you, it's likeable.

I took some time to make a few cleaning

Objective:
1- Create notation files and folders.
2- Launch to modify and save again.

To use it, the unzipped file (CCF AA test) contains:
Stack launchers in folder "1App parts".
A folder "CREER" that must contain the standalone launcher (lancement) and the two stacks (Confirmation and Nouveau Dossier CCF1) .
The Standalone launcher (Lanceur) must be in the same folder that the folder "CREER".

The first launcher (Lanceur) allows information procedure, copy and rename (It is used to create every new folder, file and text).
The second must be use uniquely in the new renamed folder (It enables to modify and save this).

I tried to make a zip file with the standalones but the upload attachment don't work.

Pascal
Attachments
CCF AA test.zip
(9.88 KiB) Downloaded 220 times

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: save command and standalone

Post by Simon » Tue May 05, 2015 8:32 pm

Hi Pascal,
Sorry for the delay but I couldn't understand what you were trying to do with your stack.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

pascalh4
Posts: 81
Joined: Thu Aug 22, 2013 12:50 pm

Re: save command and standalone

Post by pascalh4 » Tue May 05, 2015 9:53 pm

Hi Simon

And now, understand you or want you a link with the two standalone launchers?
I tried again the upload (with stand.launch) but 8Mo don't pass.


My question is always the same: can i make more simply, or better at the level of the coding?

Best

Pascal

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: save command and standalone

Post by Simon » Tue May 05, 2015 10:04 pm

Hi Pascal,
I have a feeling there is probably an easier way to do what you want but I cannot really tell as I don't even understand what you are using 2 launchers for.
I could not get the stacks you posted to run with any results.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

pascalh4
Posts: 81
Joined: Thu Aug 22, 2013 12:50 pm

Re: save command and standalone

Post by pascalh4 » Tue May 05, 2015 10:42 pm

Hi Simon

I have 2 launchers because the first create one copy of folder in which is the other launcher.
This second will serve only for the launch of the new folder.
It seemed to me simpler to include it in the reference folder.
I don't know how to explain differently. I would have to show you.

Good evening, I am going to bed), I works very early tomorrow. For information, here is the link with .exe.
https://www.dropbox.com/s/udodr97skw31m ... t.zip?dl=0

Pascal

Post Reply