Triggers: Difference between revisions

61 bytes added ,  22 September 2016
m
no edit summary
mNo edit summary
mNo edit summary
Line 38: Line 38:
; Asynchronous script execution mode
; Asynchronous script execution mode
: results in the script running in the background; user interaction is not suspended. Usually, asynchronous scripts are used in the last phases of the action.
: results in the script running in the background; user interaction is not suspended. Usually, asynchronous scripts are used in the last phases of the action.
== Security ==
Since the scripts have access to more actions than a user does, they require additional permissions.
The user must define these permissions manually for each library.
To open the dialog to set permissions for scripts — open library triggers list and click ''Shield'' on the toolbar. Permissions must be set separately on each device. Permissions are not synchronized between devices.
=== Permissions for scripts ===
; Library permissions
: determines which other libraries can be affected by the script. You can grant access to all libraries or select only certain libraries. This authorization is required for the libByName function.
; Read permissions
: grants the script read access to a file
; Write permissions
: grants the script write access to a file
; Network
: grants to the script the right to execute http requests


== Events ==
== Events ==
These are the defined ''Event types''.
These are the defined ''Event types'', Phases, and their corresponding moves of execution.
{| class="wikitable"
{| class="wikitable"
|+ THE DEFINED EVENT TYPES
|+ THE DEFINED EVENT TYPES & PHASES
|-
|-
! Event type !! Phase !! Execution mode
! Event type !! Phase !! Execution mode
Line 100: Line 80:
| after the operation || asynchronous
| after the operation || asynchronous
|}
|}
== Security ==
Since the scripts have access to more actions than a user does, they require additional permissions.
The user must define these permissions manually for each library.
To open the dialog to set permissions for scripts — open library triggers list and click ''Shield'' on the toolbar. Permissions must be set separately on each device. Permissions are not synchronized between devices.
=== Permissions for scripts ===
; Library permissions
: determines which other libraries can be affected by the script. You can grant access to all libraries or select only certain libraries. This authorization is required for the libByName function.
; Read permissions
: grants the script read access to a file
; Write permissions
: grants the script write access to a file
; Network
: grants to the script the right to execute http requests


== Libraries and Entries ==
== Libraries and Entries ==