-
Notifications
You must be signed in to change notification settings - Fork 14
app.livecodescript
The app.livecodescript script-only stack file must be located directly alongside the app.yml file in your app folder. The stack must be named app in memory.
The app stack receives messages from LevureFramework during application startup and shutdown and has a handler for each message. You will edit the handlers in the app script to control when your application initialization and cleanup operations are called.
- PreloadApplication
- InitializeApplication
- OpenApplication
- PreShutdownApplication
- ProcessURL
- ProcessFiles
The PreloadApplication handler is where you perform operations that need to happen before stacks, extensions, and externals in app.yml are loaded.
The InitializeApplication handler is called after script-only stacks, extensions, and externals in app.yml are loaded. This is where you perform initialization operations before your UI stack is opened.
The OpenApplication handler is called after InitializeApplication. This is where you open your UI stack.
The PreShutdownApplication handler is called before the application shuts down. This is where you perform any cleanup operations before shutdown.
The first parameter of the ProcessURL handler is a line delimited list of urls that your app has been requested to process. Requires the [[FRAMEWORK]]/helpers/files_and_urls helper.
The first parameter of the ProcessFiles handler is a line delimited list of files that your application supports and that you should process. Requires the [[FRAMEWORK]]/helpers/files_and_urls helper.
Levure is an application development framework written for LiveCode.