LC8 Save command

Peter Haworth pete at
Sat Feb 6 13:01:17 EST 2016

This is the context of a scripted Save command so the preference setting
doesn't help unfortunately.

I'm happy to use the "with format" option, just trying to figure out how
the get the stack file's format if it is to be saved in that format. I did
find a stackfileversion cprop in the cREVGeneral cprop set of some stacks
but it was empty.  There are other stacks where it is not present at all. I
guess I will have to open the stack file and read the first few characters
as detailed.

On Fri, Feb 5, 2016 at 6:08 PM Mark Wieder <mwieder at> wrote:

> On 02/05/2016 03:13 PM, Peter Haworth wrote:
> > Would be nice if there was a "with current format" or something similar
> > that would save the stack with the format it already has.
> Expanding on what Mark said, the IDE will do this if you have the
> preference set, but the save command invoked from a script won't.
> As you have discovered, calling the save command without options will
> save in 7.0 format unless there are widgets in the stack, in which case
> it will save in 8.0 format.
> To save in other formats you can either set the stackFileVersion before
> saving or use "with format" option of the save command.
> --
>   Mark Wieder
>   ahsoftware at
> _______________________________________________
> use-livecode mailing list
> use-livecode at
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:

More information about the use-livecode mailing list