Application Scripts is how projects that use this method are able to create application scripts that are to be shared and used with different projects. These scripts are specifically designed to add programs to your projects.
An application script isn't much different from "regular" scripts but it will take for granted that you follow a few definitions and rules and this way have enough conditions that are used by all compatible projects
Let's study a script example right now and start explaining how it works.
[main] Title=Sudoku Description=The popular number game Level=5 [variables] %ProgramTitle%=Sudoku %ProgramEXE%=sudoku.exe %ProgramFolder%=Sudoku [process] Add_Shortcut,Desktop Add_Shortcut,AutoStart Add_Shortcut,StartMenu,Games and Fun unpack
As you may notice - very few lines are needed, also note that this script is composed by 3 script sections: Main Variables Process
More settings in this section can be added but only Title, Description and Level are needed as a minimum. Since this script is meant to add programs you need to use Level=5 value to group it with other similar scripts
This is the section that is executed when running the script so it's where we should place our functions.
Let's list and explain each one of the command functions used in the [process] section:
A: It is used to add simple programs and tools on your project in a quick and simple manner.
A: In this category should be considered programs labeled as "standalone" and "portable" - which use very few files and registry settings. Also note that any program under this category should also be prepared to work under all available projects that support this method.
A: Don't use this generic script for these cases, read the chapter about exceptions and how to handle them in your scripts
A: This is a specific feature that should be handled as an exception, you shouldn't use this method for these cases.
A: You will need to suggest and discuss them on the respective discussion topic, in most cases do remember to ask functions that can also provided by other projects to make them globally available
A: Yes you can, but it is not adviced. Both methods can work well together but should be kept in separate scripts. A script that was written with this common method should avoid using methods specific to a particular type of project.
A: They can be included either inside your projects mixed with other scripts or you can find them in the download section of the community forums under the Application scripts category. We are also discussing a common folder where all these generic scripts could be placed but it's still in development.
A: No way! But we hope that this is a good method to create scripts that can work on most projects available at this moment and even on the ones to come in the future. This way we ensure that your favourite project can use as many available scripts as possible within the next years without having to rewrite or edit anything - making it easier for you to find more available programs.
You should look on the discussion forums for assistance in case you find a script that doesn't work as you expected so that the community can properly view it and suggest other alternative ways to solve exceptions.