Triggers: Difference between revisions

991 bytes removed ,  18 September 2016
m
no edit summary
mNo edit summary
mNo edit summary
Line 26: Line 26:
: The script runs in the background; the application does not stop user interaction. Usually, scripts are executed synchronously, in the last phases of the action.
: The script runs in the background; the application does not stop user interaction. Usually, scripts are executed synchronously, in the last phases of the action.


== Безопасность ==
== Security ==
Некоторые функции доступные из скриптов (операции с файлами, выполнение http-запросов, доступ к другим библиотекам) в целях безопасности требуют соответствующих разрешений.  
Some features available from scripts (file operations, the implementation of http-requests, access to other libraries) for safety reasons requires a permit. These permissions a user must manually set separately for each library.
Эти разрешения пользователь должен установить вручную для каждой библиотеки отдельно.


Чтобы открыть диалог установки разрешений для скриптов - откройте список триггеров библиотеки  и нажмите кнопку '''Щит''' на тулбаре. Установка разрешений должна выполняться на каждом устройстве отдельно. Выбранные разрешения не синхронизируются между устройствами.
To open the dialogue set permissions for scripts — open library triggers list and click Shield on the toolbar. Set permissions must be done on each device separately. Selected resolution is not synchronized between devices.


=== Разрешения для скриптов ===
=== Permissions scripts ===
; Libraries : Определяет какие библиотеки помимо родной будут доступны скрипту. Вы можете предоставить доступ ко всем библиотекам или выбрать определенные библиотеки. Данное разрешение требуется для функции libByName.
; Libraries
; Read files : Предоставляет скрипту доступ на чтение файлов с запоминающего устройства. Данное разрешение требуется для функции file.
: Determines which libraries will be available in addition to the native script. You can grant access to all libraries, or select certain libraries. This authorization is required for libByName function.
; Write files : Предоставляет скрипту доступ на создание и изменение файлов в запоминающем устройстве. Данное разрешение требуется для функции file.
 
; Network : Предоставляет скрипту право выполнять http запросы. Данное разрешение требуется для функции http.
; Read files
: It provides access to the script file read from the storage device. This authorization is required for file functions.
 
; Write files
: It provides access to the script creation and editing files in the memory.This authorization is required for file functions.
 
; Network
: It provides the right to perform the script http requests. This authorization is required for the function of http.


== Действия ==
== Действия ==