scImportMainStack

Typecommand
Dictionarylibrary.smartcrumbsvcw
LibrarySmartCrumbsVCW
Syntax
scImportMainStack "../path/smartcrumbs/[stackFile.livecode.sc]", [<pStartupStack>]
Associationscom.livecode.library.smartcrumbsvcw
Summary

This command is responsible for importing a binary stack from its crumbs

OSmac, windows, linux, ios, android
Platformsdesktop, mobile, web
Parameters
NameTypeDescription
pFolder

the path to the folder where the smart crumbs are.

pStartupStack

the name of the stack to call when the entire project is finished restoring. This last parameter is optional, if it is not specified, all the mainstacks that are restored will be opened.

Example
# Import all the mainstacks that have the crumbs in this folder and finally open them all
scImportMainStack "../path/smartcrumbs/"
# Import the crumbs from the test.livecode stack
scImportMainStack "../path/smartcrumbs/test.livecode.sc/"
# Import all the mainstacks that have the crumbs in this folder.
# When you finish restoring all stacks, call the stack "launcher"
scImportMainStack "../path/smartcrumbs/", "launcher"
Values
NameTypeDescription
The result

if I manage to import the mainstacks from their crumbs, it returns "import successful". Otherwise it returns empty

Description

Use the scImportMainStack command to restore a mainstack from its respective smart crumbs. If there are more mainstack in the folder where the crumbs are, they will be restored as well. For this reason, you must specify which of all of them should be called after all the batteries are restored. If not specified, all stacks will be opened.

Important  Before importing a stack from its crumbs make sure to see saved the changes of the stacks that are open and will not be restored. Since if there is an open stack with the name of one of the ones that is being restored. The SmartCrumbsVCW library will destroy the existing stack in order to restore the other one.

Tagsversion control