What I have done is that I have made a development-group with stuff I use when I develope my mainstack. Such as a color palette and buttons. And also a button that sends the latest version to my server and removes the development group and other settings. This is a very fast solution. But I clone my stack and rename it before I send it to my server and the clone command does not clone the substacks.
I guess the reason for this is that livecode doesn´t like stacks with duplicate names. This is no problem with my mainstack as My "development"-stack uses another name and I change it after cloning it. but what about the substacks....I need to keep their name...
Is there a way to do this?
this is the code I use to clone my mainstack and send it to my ftp
Code: Select all
clone this stack
set the cDefaultfolder of it to empty
set the destroystack of it to true
set the cVersion of it to tVersion
delete group "devgroup" of it
set the name of stack "copy of *stackname*" to "update"
set the filename of stack "update" to "/Users/*username*/Dropbox/*stackname*/Build/update.lc"
save stack "Update"
put "/Users/*username*/Dropbox/******/Build/update.lc" into tFileToUpload
put "ftp://****server****/update.lc" into tDestination
libURLftpUploadFile tFileToUpload, tDestination, "uploadComplete"
close stack "update"