Scripts are sequential series of commands that are executable on one or more devices using a management project.
To configure scripts you must enter the module intended for such, on this screen the list of scripts created and the options to manage these scripts are presented:
Scripting
To create a new script, click “New”, and then you will be asked for the Data of Name (unique name of the script), Description (short description of the script) and Status (Active/Inactive).
After filling in the requested data, click on save. After this, the “Script” tab will be enabled, where the script will be created.
Script Editing
To edit the script as such, access the “Script” tab, where the editing interface of the commands to be included will be presented.
In this interface, you can enter the commands to be included in the desired execution sequence.
As an aid for correct writing in terms of structure and syntax, the “Verify” button is available, which validates the sequence of written commands and presents a clear and visible message in the event of an error or on the contrary if the sequence is correct.
Available commands for scripts
The following table describes the commands currently available to be included in scripts.
Script | Description | Number of Parameters | Example |
---|---|---|---|
text | Displays a message on the device’s timeline (Not the message being sent to the device, this command does not interact directly with the device) | The necessary | text Starting Script Testing |
Copy | Copies an item (file or folder) from a source path to a destination path on the device | 2 | copy route/source route/destination |
of the | Delete an item (file or folder) from your device | 1 | of the path/element |
Start | Run an app on your device | 1 | Start com.facebook.katana |
install | Install an app on your device | 1 | install com.facebook.katana |
uninstall | Uninstall an app from your device | 1 | uninstall com.facebook.katana |
validateVersion | Check the version of a specific app installed on a device | 2 | valicateVersion com.facebook.katana 1.2 |
Policy | Send a policy command | 1 | policy DefaultPolicy |
Script removal
To delete a script, place it in the list and click “Delete”
It should be taken into account that, for the deletion of a command script, it is necessary that it is not linked to any management project.