# Scripts ## Méthodes ### Scripts.AddScript ADMIN Add a script **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `content` | `String` | | | `name` | `String` | | **Retour :** | Champ | Type | Notes | | --- | --- | --- | | `errors` | `StringList` | optionnel | | `script` | [Script](../types.md#script) | optionnel | | `scriptError` | [ScriptError](../types.md#scripterror) | | --- ### Scripts.EditScript ADMIN Edit a script **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `id` | `Uuid` | | | `content` | `String` | optionnel | | `name` | `String` | optionnel | **Retour :** | Champ | Type | Notes | | --- | --- | --- | | `errors` | `StringList` | optionnel | | `scriptError` | [ScriptError](../types.md#scripterror) | | --- ### Scripts.GetScriptContent ADMIN Get a scripts content. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `id` | `Uuid` | | **Retour :** | Champ | Type | Notes | | --- | --- | --- | | `content` | `String` | optionnel | | `scriptError` | [ScriptError](../types.md#scripterror) | | --- ### Scripts.GetScripts ADMIN Get all script, that is, their names and properties, but no content. **Paramètres :** _Aucun paramètre._ **Retour :** | Champ | Type | Notes | | --- | --- | --- | | `scripts` | [Scripts](../types.md#scripts) | | --- ### Scripts.RemoveScript ADMIN remove a script **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `id` | `Uuid` | | **Retour :** | Champ | Type | Notes | | --- | --- | --- | | `scriptError` | [ScriptError](../types.md#scripterror) | | --- ## Notifications ### Scripts.ScriptAdded Emitted when a script has been added to the system. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `script` | [Script](../types.md#script) | | --- ### Scripts.ScriptChanged Emitted when a script has been changed in the system (e.g. renamed). **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `name` | `String` | | | `scriptId` | `Uuid` | | --- ### Scripts.ScriptContentChanged Emitted when a script's content has been changed in the system. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `scriptId` | `Uuid` | | --- ### Scripts.ScriptLogMessage Emitted when a script produces a console message. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `message` | `String` | | | `scriptId` | `Uuid` | | | `type` | [ScriptMessageType](../types.md#scriptmessagetype) | | --- ### Scripts.ScriptRemoved Emitted when a script has been removed from the system. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `id` | `Uuid` | | ---