backupcopying in substackmodifyable standalone

Kresten Bjerg Kresten.Bjerg at psy.ku.dk
Fri Nov 17 09:33:27 EST 2006


We have come a long way in the development of a prototype laptop diary
application, "Phenomenalog" (v.16.4.0)
It works , adding new cards to substacks,over many months of daily use
without bugs.
As standalone-application it also works fine,on all 4 platforms,  except
for one feature: creating of (3) backups/ to a user selected folder
preference.
There is not produced a copy of the actual standalone, but a file with
.rev, which evidently is not a standalone.
No wonder, as the effective line 6  goes: "revcopy......." Even just
specifying .app as ending does not help.
I guess solution should have to do with app.path ?

Here is the relevant script-part:

 put the effective filename of this stack into source
    set itemdelimiter to "/"
    put last item of source into sourcename
    set itemdelimiter to ","
    put the backuppath of this stack into destination
    revcopyfile source, destination
    put destination & "/" & sourcename into oldpath
    put destination & "/" & "Diary" && phenodate &".rev" into newpath
    rename file oldpath to newpath
    put the backups of this stack into list
    if the number of lines of list > 3 then
        put line 1 of list into deletepath
        delete line 1 of list
    end if
    put return & newpath after list
    set the backups of this stack to list
    delete file deletepath




More information about the use-livecode mailing list