.. _scripting-api: Scripting API ============= CopyQ provides scripting capabilities to automatically handle clipboard changes, organize items, change settings and much more. Supported language features and functions can be found at `ECMAScript Reference `__. The language is mostly equivalent to modern JavaScript. Some features may be missing but feel free to use for example `JavaScript reference on MDN `__. CopyQ-specific features described in this document: - `Functions`_ - `Types`_ - `Objects`_ - `MIME types`_ - `Plugins`_ .. note:: These terms are equivalent: format, MIME type, media type Execute Script -------------- The scripts can be executed from: a. Action or Command dialogs (F5, F6 shortcuts), if the first line starts with ``copyq:`` b. command line as ``copyq eval '