# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2017, Lukas Holecek
# This file is distributed under the same license as the CopyQ package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2017.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CopyQ \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-07 14:49+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.4.0\n"

#: ../../scripting-api.rst:4
msgid "Scripting API"
msgstr ""

#: ../../scripting-api.rst:6
msgid ""
"CopyQ provides scripting capabilities to automatically handle clipboard "
"changes, organize items, change settings and much more."
msgstr ""

#: ../../scripting-api.rst:9
msgid ""
"In addition to features provided by Qt Script there are following "
"`functions`_, `types`_, `objects`_ and `MIME types`_."
msgstr ""

#: ../../scripting-api.rst:13
msgid "Execute Script"
msgstr ""

#: ../../scripting-api.rst:15
msgid "The scripts can be executed:"
msgstr ""

#: ../../scripting-api.rst:17
msgid ""
"from commands (in Action or Command dialogs -- F5, F6 shortcuts) if the "
"first line starts with ``copyq:``,"
msgstr ""

#: ../../scripting-api.rst:19
msgid "from command line as ``copyq eval '<SCRIPT>'``,"
msgstr ""

#: ../../scripting-api.rst:20
msgid "from command line as ``cat script.js | copyq eval -``,"
msgstr ""

#: ../../scripting-api.rst:21
msgid ""
"from command line as ``copyq <SCRIPT_FUNCTION> <FUNCTION_ARGUMENT_1> "
"<FUNCTION_ARGUMENT_2> ...``."
msgstr ""

#: ../../scripting-api.rst:24
msgid ""
"When run from command line, result of last expression is printed on "
"stdout."
msgstr ""

#: ../../scripting-api.rst:27
msgid "Command exit values are:"
msgstr ""

#: ../../scripting-api.rst:29
msgid "0 - script finished without error,"
msgstr ""

#: ../../scripting-api.rst:30
msgid "1 - ``fail()`` was called,"
msgstr ""

#: ../../scripting-api.rst:31
msgid "2 - bad syntax,"
msgstr ""

#: ../../scripting-api.rst:32
msgid "3 - exception was thrown."
msgstr ""

#: ../../scripting-api.rst:35
msgid "Command Line"
msgstr ""

#: ../../scripting-api.rst:37
msgid ""
"If number of arguments that can be passed to function is limited you can "
"use"
msgstr ""

#: ../../scripting-api.rst:46
msgid ""
"where ``<FUNCTION1>`` and ``<FUNCTION2>`` are scripts where result of "
"last expression is functions that take two and one arguments "
"respectively."
msgstr ""

#: ../../scripting-api.rst:50
msgid "E.g."
msgstr ""

#: ../../scripting-api.rst:56
msgid ""
"After ``eval`` no arguments are treated as functions since it can access "
"all arguments."
msgstr ""

#: ../../scripting-api.rst:59
msgid ""
"Arguments recognize escape sequences ``\\n`` (new line), ``\\t`` "
"(tabulator character) and ``\\\\`` (backslash)."
msgstr ""

#: ../../scripting-api.rst:62
msgid "Argument ``-e`` is identical to ``eval``."
msgstr ""

#: ../../scripting-api.rst:64
msgid "Argument ``-`` is replaced with data read from stdin."
msgstr ""

#: ../../scripting-api.rst:66
msgid ""
"Argument ``--`` is skipped and all the remaining arguments are "
"interpreted as they are (escape sequences are ignored and ``-e``, ``-``, "
"``--`` are left unchanged)."
msgstr ""

#: ../../scripting-api.rst:71
msgid "Functions"
msgstr ""

#: ../../scripting-api.rst:73
msgid "Argument list parts ``...`` and ``[...]`` are optional and can be omitted."
msgstr ""

#: ../../scripting-api.rst:78
msgid "Returns version string."
msgstr ""

#: ../../scripting-api.rst:82
msgid "Returns help string."
msgstr ""

#: ../../scripting-api.rst:86
msgid "Returns help for matched commands."
msgstr ""

#: ../../scripting-api.rst:90
msgid "Shows main window."
msgstr ""

#: ../../scripting-api.rst:94
msgid "Shows tab."
msgstr ""

#: ../../scripting-api.rst:98
msgid "Shows main window under mouse cursor."
msgstr ""

#: ../../scripting-api.rst:102
msgid "Shows main window with given geometry."
msgstr ""

#: ../../scripting-api.rst:106
msgid "Shows tab with given geometry."
msgstr ""

#: ../../scripting-api.rst:110
msgid "Hides main window."
msgstr ""

#: ../../scripting-api.rst:114
msgid "Shows or hides main window."
msgstr ""

#: ../../scripting-api.rst:116
msgid "Returns true only if main window is being shown."
msgstr ""

#: ../../scripting-api.rst:120
msgid "Opens context menu."
msgstr ""

#: ../../scripting-api.rst:124
msgid "Shows context menu for given tab."
msgstr ""

#: ../../scripting-api.rst:126
msgid "This menu doesn't show clipboard and doesn't have any special actions."
msgstr ""

#: ../../scripting-api.rst:128
msgid ""
"Second argument is optional maximum number of items. The default value "
"same as for tray (i.e. value of ``config('tray_items')``)."
msgstr ""

#: ../../scripting-api.rst:131
msgid ""
"Optional arguments x, y are coordinates in pixels on screen where menu "
"should show up. By default menu shows up under the mouse cursor."
msgstr ""

#: ../../scripting-api.rst:136
msgid "Exits server."
msgstr ""

#: ../../scripting-api.rst:140
msgid "Disables or enables clipboard content storing."
msgstr ""

#: ../../scripting-api.rst:144
msgid "Returns true only if clipboard storing is enabled."
msgstr ""

#: ../../scripting-api.rst:148
msgid "Returns true only if main window is visible."
msgstr ""

#: ../../scripting-api.rst:152
msgid "Returns true only if main window has focus."
msgstr ""

#: ../../scripting-api.rst:156
msgid "Sets text for filtering items in main window."
msgstr ""

#: ../../scripting-api.rst:160
msgid "Ignores current clipboard content (used for automatic commands)."
msgstr ""

#: ../../scripting-api.rst:162
msgid "This does all of the below."
msgstr ""

#: ../../scripting-api.rst:164
msgid "Skips any next automatic commands."
msgstr ""

#: ../../scripting-api.rst:165
msgid "Omits changing window title and tray tool tip."
msgstr ""

#: ../../scripting-api.rst:166
msgid "Won't store content in clipboard tab."
msgstr ""

#: ../../scripting-api.rst:170
msgid "Returns clipboard data for MIME type (default is text)."
msgstr ""

#: ../../scripting-api.rst:172 ../../scripting-api.rst:308
msgid "Pass argument ``\"?\"`` to list available MIME types."
msgstr ""

#: ../../scripting-api.rst:176
msgid "Same as ``clipboard()`` for Linux/X11 mouse selection."
msgstr ""

#: ../../scripting-api.rst:180
msgid "Returns true only if clipboard contains MIME type."
msgstr ""

#: ../../scripting-api.rst:184
msgid "Same as ``hasClipboardFormat()`` for Linux/X11 mouse selection."
msgstr ""

#: ../../scripting-api.rst:188
msgid "Sets clipboard plain text."
msgstr ""

#: ../../scripting-api.rst:190
msgid "Same as ``copy(mimeText, text)``."
msgstr ""

#: ../../scripting-api.rst:194
msgid "Sets clipboard data."
msgstr ""

#: ../../scripting-api.rst:196
msgid ""
"This also sets ``mimeOwner`` format so automatic commands are not run on "
"the new data and it's not store in clipboard tab."
msgstr ""

#: ../../scripting-api.rst:199
msgid "Exception is thrown if clipboard fails to be set."
msgstr ""

#: ../../scripting-api.rst:201
msgid "Example (set both text and rich text):"
msgstr ""

#: ../../scripting-api.rst:210
msgid "Sends ``Ctrl+C`` to current window."
msgstr ""

#: ../../scripting-api.rst:212
msgid ""
"Exception is thrown if clipboard doesn't change (clipboard is reset "
"before sending the shortcut)."
msgstr ""

#: ../../scripting-api.rst:217
msgid "Same as ``copy(...)`` for Linux/X11 mouse selection."
msgstr ""

#: ../../scripting-api.rst:221
msgid "Pastes current clipboard."
msgstr ""

#: ../../scripting-api.rst:223
msgid ""
"This is basically only sending ``Shift+Insert`` shortcut to current "
"window."
msgstr ""

#: ../../scripting-api.rst:226
msgid ""
"Correct functionality depends a lot on target application and window "
"manager."
msgstr ""

#: ../../scripting-api.rst:231
msgid "Returns array of with tab names."
msgstr ""

#: ../../scripting-api.rst:235
msgid "Sets current tab for the script."
msgstr ""

#: ../../scripting-api.rst:237
msgid "E.g. following script selects third item (index is 2) from tab \"Notes\"."
msgstr ""

#: ../../scripting-api.rst:246
msgid "Removes tab."
msgstr ""

#: ../../scripting-api.rst:250
msgid "Renames tab."
msgstr ""

#: ../../scripting-api.rst:254
msgid "Returns path to icon for tab."
msgstr ""

#: ../../scripting-api.rst:258
msgid "Sets icon for tab."
msgstr ""

#: ../../scripting-api.rst:262
msgid "Returns amount of items in current tab."
msgstr ""

#: ../../scripting-api.rst:266
msgid "Copies item in the row to clipboard."
msgstr ""

#: ../../scripting-api.rst:268
msgid "Additionally, moves selected item to top depending on settings."
msgstr ""

#: ../../scripting-api.rst:272
msgid "Copies next item from current tab to clipboard."
msgstr ""

#: ../../scripting-api.rst:276
msgid "Copies previous item from current tab to clipboard."
msgstr ""

#: ../../scripting-api.rst:280
msgid "Adds new text items to current tab."
msgstr ""

#: ../../scripting-api.rst:282 ../../scripting-api.rst:314
msgid "Throws an exception if space for the items cannot be allocated."
msgstr ""

#: ../../scripting-api.rst:286
msgid "Inserts new text items to current tab."
msgstr ""

#: ../../scripting-api.rst:290
msgid "Removes items in current tab."
msgstr ""

#: ../../scripting-api.rst:292
msgid "Throws an exception if some items cannot be removed."
msgstr ""

#: ../../scripting-api.rst:296
msgid "Edits items in current tab."
msgstr ""

#: ../../scripting-api.rst:298
msgid "Opens external editor if set, otherwise opens internal editor."
msgstr ""

#: ../../scripting-api.rst:302
msgid "Same as ``clipboard()``."
msgstr ""

#: ../../scripting-api.rst:306
msgid "Returns concatenated data from items."
msgstr ""

#: ../../scripting-api.rst:312
msgid "Inserts new item to current tab."
msgstr ""

#: ../../scripting-api.rst:318
msgid "Changes data in item in current tab."
msgstr ""

#: ../../scripting-api.rst:320
msgid "If data is ``undefined`` the format is removed from item."
msgstr ""

#: ../../scripting-api.rst:324
msgid "Returns item separator (used when concatenating item data)."
msgstr ""

#: ../../scripting-api.rst:328
msgid "Sets item separator for concatenating item data."
msgstr ""

#: ../../scripting-api.rst:332
msgid "Opens action dialog."
msgstr ""

#: ../../scripting-api.rst:336
msgid "Runs command for items in current tab."
msgstr ""

#: ../../scripting-api.rst:340
msgid "Shows popup message for given time in milliseconds."
msgstr ""

#: ../../scripting-api.rst:342
msgid ""
"If ``time`` argument is set to -1, the popup is hidden only after mouse "
"click."
msgstr ""

#: ../../scripting-api.rst:347
msgid "Shows popup message with icon and buttons."
msgstr ""

#: ../../scripting-api.rst:349
msgid "Each button can have script and data."
msgstr ""

#: ../../scripting-api.rst:351
msgid ""
"If button is clicked the notification is hidden and script is executed "
"with the data passed as stdin."
msgstr ""

#: ../../scripting-api.rst:354
msgid "The function returns immediatelly (doesn't wait on user input)."
msgstr ""

#: ../../scripting-api.rst:356 ../../scripting-api.rst:653
msgid "Special arguments:"
msgstr ""

#: ../../scripting-api.rst:358
msgid "'.title' - notification title"
msgstr ""

#: ../../scripting-api.rst:359
msgid "'.message' - notification message (can contain basic HTML)"
msgstr ""

#: ../../scripting-api.rst:360
msgid "'.icon' - notification icon (path to image or font icon)"
msgstr ""

#: ../../scripting-api.rst:361
msgid "'.id' - notification ID - this replaces notification with same ID"
msgstr ""

#: ../../scripting-api.rst:362
msgid ""
"'.time' - duration of notification in milliseconds (default is -1, i.e. "
"waits for mouse click)"
msgstr ""

#: ../../scripting-api.rst:364
msgid "'.button' - adds button (three arguments: name, script and data)"
msgstr ""

#: ../../scripting-api.rst:366 ../../scripting-api.rst:735
#: ../../scripting-api.rst:800 ../../scripting-api.rst:868
msgid "Example:"
msgstr ""

#: ../../scripting-api.rst:379
msgid "Exports current tab into file."
msgstr ""

#: ../../scripting-api.rst:383
msgid "Imports items from file to a new tab."
msgstr ""

#: ../../scripting-api.rst:387
msgid "Returns help with list of available options."
msgstr ""

#: ../../scripting-api.rst:391
msgid "Returns value of given option."
msgstr ""

#: ../../scripting-api.rst:393 ../../scripting-api.rst:399
msgid "Throws an exception if the option is invalid."
msgstr ""

#: ../../scripting-api.rst:397
msgid "Sets option and returns new value."
msgstr ""

#: ../../scripting-api.rst:403
msgid ""
"Sets multiple options and return list with values in format "
"``optionName=newValue``."
msgstr ""

#: ../../scripting-api.rst:406
msgid ""
"Throws an exception if there is an invalid option in which case it won't "
"set any options."
msgstr ""

#: ../../scripting-api.rst:411
msgid "Returns paths and flags used by the application."
msgstr ""

#: ../../scripting-api.rst:413
msgid "E.g. following command prints path to configuration file."
msgstr ""

#: ../../scripting-api.rst:421
msgid "Evaluates script and returns result."
msgstr ""

#: ../../scripting-api.rst:425
msgid "Evaluates script file and returns result of last expression in the script."
msgstr ""

#: ../../scripting-api.rst:428
msgid "This is useful to move some common code out of commands."
msgstr ""

#: ../../scripting-api.rst:448
msgid "Get or set current path."
msgstr ""

#: ../../scripting-api.rst:452
msgid "Converts a value to string."
msgstr ""

#: ../../scripting-api.rst:454
msgid ""
"If ByteArray object is the argument, it assumes UTF8 encoding. To use "
"different encoding, use ``toUnicode()``."
msgstr ""

#: ../../scripting-api.rst:459
msgid "Returns standard input passed to the script."
msgstr ""

#: ../../scripting-api.rst:463
msgid "Returns string for bytes with given encoding."
msgstr ""

#: ../../scripting-api.rst:467
msgid ""
"Returns string for bytes with encoding detected by checking Byte Order "
"Mark (BOM)."
msgstr ""

#: ../../scripting-api.rst:472
msgid "Returns encoded text."
msgstr ""

#: ../../scripting-api.rst:476
msgid "Returns data for automatic commands or selected items."
msgstr ""

#: ../../scripting-api.rst:478
msgid ""
"If run from menu or using non-global shortcut the data are taken from "
"selected items."
msgstr ""

#: ../../scripting-api.rst:481
msgid "If run for automatic command the data are clipboard content."
msgstr ""

#: ../../scripting-api.rst:485
msgid "Modifies data for ``data()`` and new clipboard item."
msgstr ""

#: ../../scripting-api.rst:487
msgid "Next automatic command will get updated data."
msgstr ""

#: ../../scripting-api.rst:489
msgid "This is also the data used to create new item from clipboard."
msgstr ""

#: ../../scripting-api.rst:491
msgid ""
"E.g. following automatic command will add creation time data and tag to "
"new items."
msgstr ""

#: ../../scripting-api.rst:501
msgid "E.g. following menu command will add tag to selected items."
msgstr ""

#: ../../scripting-api.rst:510
msgid "Removes data for ``data()`` and new clipboard item."
msgstr ""

#: ../../scripting-api.rst:514
msgid "Returns formats available for ``data()``."
msgstr ""

#: ../../scripting-api.rst:518
msgid "Prints value to standard output."
msgstr ""

#: ../../scripting-api.rst:522
msgid "Aborts script evaluation."
msgstr ""

#: ../../scripting-api.rst:526
msgid "Aborts script evaluation with nonzero exit code."
msgstr ""

#: ../../scripting-api.rst:530
msgid "Focus tab without showing main window."
msgstr ""

#: ../../scripting-api.rst:534
msgid "Selects items in current tab."
msgstr ""

#: ../../scripting-api.rst:538
msgid "Returns tab that was selected when script was executed."
msgstr ""

#: ../../scripting-api.rst:540 ../../scripting-api.rst:546
#: ../../scripting-api.rst:555 ../../scripting-api.rst:564
#: ../../scripting-api.rst:573 ../../scripting-api.rst:582
#: ../../scripting-api.rst:588
msgid "See `Selected Items`_."
msgstr ""

#: ../../scripting-api.rst:544
msgid "Returns selected rows in current tab."
msgstr ""

#: ../../scripting-api.rst:550
msgid "Returns data for given selected item."
msgstr ""

#: ../../scripting-api.rst:552
msgid "The data can empty if the item was removed during execution of the script."
msgstr ""

#: ../../scripting-api.rst:559
msgid "Set data for given selected item."
msgstr ""

#: ../../scripting-api.rst:561
msgid "Returns false only if the data cannot be set, usually if item was removed."
msgstr ""

#: ../../scripting-api.rst:568
msgid "Returns data for all selected item."
msgstr ""

#: ../../scripting-api.rst:570
msgid ""
"Some data can empty if the item was removed during execution of the "
"script."
msgstr ""

#: ../../scripting-api.rst:577
msgid "Set data to all selected items."
msgstr ""

#: ../../scripting-api.rst:579
msgid ""
"Some data may not be set if the item was removed during execution of the "
"script."
msgstr ""

#: ../../scripting-api.rst:586
msgid "Returns current row in current tab."
msgstr ""

#: ../../scripting-api.rst:592
msgid "Returns text with special HTML characters escaped."
msgstr ""

#: ../../scripting-api.rst:596
msgid "Returns deserialized object from serialized items."
msgstr ""

#: ../../scripting-api.rst:600
msgid "Returns serialized item."
msgstr ""

#: ../../scripting-api.rst:604
msgid "Returns an item in current tab."
msgstr ""

#: ../../scripting-api.rst:608
msgid "Inserts item to current tab."
msgstr ""

#: ../../scripting-api.rst:612
msgid "Returns base64-encoded data."
msgstr ""

#: ../../scripting-api.rst:616
msgid "Returns base64-decoded data."
msgstr ""

#: ../../scripting-api.rst:620
msgid "Tries to open URLs in appropriate applications."
msgstr ""

#: ../../scripting-api.rst:622
msgid "Returns true only if all URLs were successfully opened."
msgstr ""

#: ../../scripting-api.rst:626
msgid "Executes a command."
msgstr ""

#: ../../scripting-api.rst:628
msgid "All arguments after ``null`` are passed to standard input of the command."
msgstr ""

#: ../../scripting-api.rst:631
msgid ""
"If arguments is function it will be called with array of lines read from "
"stdout whenever available."
msgstr ""

#: ../../scripting-api.rst:634
msgid "E.g. create item for each line on stdout:"
msgstr ""

#: ../../scripting-api.rst:641
msgid "Returns object for the finished command or ``undefined`` on failure."
msgstr ""

#: ../../scripting-api.rst:645
msgid "Returns window title of currently focused window."
msgstr ""

#: ../../scripting-api.rst:649
msgid "Shows messages or asks user for input."
msgstr ""

#: ../../scripting-api.rst:651
msgid "Arguments are names and associated values."
msgstr ""

#: ../../scripting-api.rst:655
msgid "'.title' - dialog title"
msgstr ""

#: ../../scripting-api.rst:656
msgid "'.icon' - dialog icon (see below for more info)"
msgstr ""

#: ../../scripting-api.rst:657
msgid "'.style' - Qt style sheet for dialog"
msgstr ""

#: ../../scripting-api.rst:658
msgid "'.height', '.width', '.x', '.y' - dialog geometry"
msgstr ""

#: ../../scripting-api.rst:659
msgid "'.label' - dialog message (can contain basic HTML)"
msgstr ""

#: ../../scripting-api.rst:668
msgid "Other arguments are used to get user input."
msgstr ""

#: ../../scripting-api.rst:675
msgid "If multiple inputs are required, object is returned."
msgstr ""

#: ../../scripting-api.rst:686
msgid ""
"Editable combo box can be created by passing array. Current value can be "
"provided using ``.defaultChoice`` (by default it's the first item)."
msgstr ""

#: ../../scripting-api.rst:693
msgid ""
"List can be created by prefixing name/label with ``.list:`` and passing "
"array."
msgstr ""

#: ../../scripting-api.rst:703
msgid ""
"Icon for custom dialog can be set from icon font, file path or theme. "
"Icons from icon font can be copied from icon selection dialog in Command "
"dialog or dialog for setting tab icon (in menu 'Tabs/Change Tab Icon')."
msgstr ""

#: ../../scripting-api.rst:717
msgid "Returns array with names of all custom options."
msgstr ""

#: ../../scripting-api.rst:721
msgid "Returns value for an option."
msgstr ""

#: ../../scripting-api.rst:725
msgid "Sets value for a new option or overrides existing option."
msgstr ""

#: ../../scripting-api.rst:729
msgid "Returns text representation of current date and time."
msgstr ""

#: ../../scripting-api.rst:731
msgid ""
"See `QDateTime::toString() "
"<http://doc.qt.io/qt-5/qdatetime.html#toString>`__ for details on "
"formatting date and time."
msgstr ""

#: ../../scripting-api.rst:743
msgid "Return list of all commands."
msgstr ""

#: ../../scripting-api.rst:747
msgid "Clear previous commands and set new ones."
msgstr ""

#: ../../scripting-api.rst:749
msgid "To add new command:"
msgstr ""

#: ../../scripting-api.rst:764
msgid "Return list of commands from exported commands text."
msgstr ""

#: ../../scripting-api.rst:768
msgid "Return exported command text."
msgstr ""

#: ../../scripting-api.rst:772
msgid "Sends HTTP GET request."
msgstr ""

#: ../../scripting-api.rst:774 ../../scripting-api.rst:780
msgid "Returns reply."
msgstr ""

#: ../../scripting-api.rst:778
msgid "Sends HTTP POST request."
msgstr ""

#: ../../scripting-api.rst:784
msgid "Returns value of environment variable with given name."
msgstr ""

#: ../../scripting-api.rst:788
msgid "Sets environment variable with given name to given value."
msgstr ""

#: ../../scripting-api.rst:790
msgid "Returns true only if the variable was set."
msgstr ""

#: ../../scripting-api.rst:794
msgid "Wait for given time in milliseconds."
msgstr ""

#: ../../scripting-api.rst:798
msgid "Returns image data with screenshot."
msgstr ""

#: ../../scripting-api.rst:808
msgid "Same as ``screenshot()`` but allows to select an area on screen."
msgstr ""

#: ../../scripting-api.rst:811
msgid "Types"
msgstr ""

#: ../../scripting-api.rst:815
msgid "Wrapper for QByteArray Qt class."
msgstr ""

#: ../../scripting-api.rst:817
msgid "See `QByteArray <http://doc.qt.io/qt-5/qbytearray.html>`__."
msgstr ""

#: ../../scripting-api.rst:819
msgid ""
"``ByteArray`` is used to store all item data (image data, HTML and even "
"plain text)."
msgstr ""

#: ../../scripting-api.rst:822
msgid ""
"Use ``str()`` to convert it to string. Strings are usually more "
"versatile. For example to concatenate two items, the data need to be "
"converted to strings first."
msgstr ""

#: ../../scripting-api.rst:832
msgid "Wrapper for QFile Qt class."
msgstr ""

#: ../../scripting-api.rst:834
msgid "See `QFile <http://doc.qt.io/qt-5/qfile.html>`__."
msgstr ""

#: ../../scripting-api.rst:836
msgid ""
"Following code reads contents of \"README.md\" file from current "
"directory."
msgstr ""

#: ../../scripting-api.rst:847
msgid "Wrapper for QDir Qt class."
msgstr ""

#: ../../scripting-api.rst:849
msgid "See `QDir <http://doc.qt.io/qt-5/qdir.html>`__."
msgstr ""

#: ../../scripting-api.rst:853
msgid "Wrapper for QTemporaryFile Qt class."
msgstr ""

#: ../../scripting-api.rst:855
msgid "See `QTemporaryFile <https://doc.qt.io/qt-5/qtemporaryfile.html>`__."
msgstr ""

#: ../../scripting-api.rst:866
msgid "Type is ``Object`` and each property is MIME type with data."
msgstr ""

#: ../../scripting-api.rst:879 ../../scripting-api.rst:887
msgid "Type is ``Object`` and properties are:"
msgstr ""

#: ../../scripting-api.rst:881
msgid "``stdout`` - standard output"
msgstr ""

#: ../../scripting-api.rst:882
msgid "``stderr`` - standard error output"
msgstr ""

#: ../../scripting-api.rst:883
msgid "``exit_code`` - exit code"
msgstr ""

#: ../../scripting-api.rst:889
msgid "``data`` - reply data"
msgstr ""

#: ../../scripting-api.rst:890
msgid "``error`` - error string (set only if an error occurred)"
msgstr ""

#: ../../scripting-api.rst:891
msgid "``redirect`` - URL for redirection (set only if redirection is needed)"
msgstr ""

#: ../../scripting-api.rst:893
msgid ""
"``headers`` - reply headers (array of pairs with header name and header "
"content)"
msgstr ""

#: ../../scripting-api.rst:898
msgid "Wrapper for a command (from Command dialog)."
msgstr ""

#: ../../scripting-api.rst:900
msgid ""
"Properties are same as members of `Command struct "
"<https://github.com/hluk/CopyQ/blob/master/src/common/command.h>`__."
msgstr ""

#: ../../scripting-api.rst:904
msgid "Objects"
msgstr ""

#: ../../scripting-api.rst:908
msgid ""
"Array for accessing arguments passed to current function or the script "
"(``arguments[0]`` is the script itself)."
msgstr ""

#: ../../scripting-api.rst:912
msgid "MIME Types"
msgstr ""

#: ../../scripting-api.rst:914
msgid ""
"Item and clipboard can provide multiple formats for their data. Type of "
"the data is determined by MIME type."
msgstr ""

#: ../../scripting-api.rst:917
msgid ""
"Here is list of some common and builtin (start with "
"``application/x-copyq-``) MIME types."
msgstr ""

#: ../../scripting-api.rst:920
msgid ""
"These MIME types values are assigned to global variables prefixed with "
"``mime``."
msgstr ""

#: ../../scripting-api.rst:925
msgid "Content for following types is UTF-8 encoded."
msgstr ""

#: ../../scripting-api.rst:929
msgid "Data contains plain text content."
msgstr ""

#: ../../scripting-api.rst:933
msgid "Data contains HTML content."
msgstr ""

#: ../../scripting-api.rst:937
msgid "Data contains list of links to files, web pages etc."
msgstr ""

#: ../../scripting-api.rst:941
msgid "Current window title for copied clipboard."
msgstr ""

#: ../../scripting-api.rst:945
msgid "Serialized items."
msgstr ""

#: ../../scripting-api.rst:949
msgid "Data contains notes for item."
msgstr ""

#: ../../scripting-api.rst:953
msgid ""
"If available, the clipboard was set from CopyQ (from script or copied "
"items)."
msgstr ""

#: ../../scripting-api.rst:956
msgid ""
"Such clipboard is ignored in CopyQ, i.e. it won't be stored in clipboard "
"tab and automatic commands won't be executed on it."
msgstr ""

#: ../../scripting-api.rst:961
msgid "Contains ``selection`` if data is from X11 mouse selection."
msgstr ""

#: ../../scripting-api.rst:965
msgid "Current tab name when invoking command from main window."
msgstr ""

#: ../../scripting-api.rst:967
msgid "Following command print the tab name when invoked from main window."
msgstr ""

#: ../../scripting-api.rst:976
msgid "Selected items when invoking command from main window."
msgstr ""

#: ../../scripting-api.rst:980
msgid "Current item when invoking command from main window."
msgstr ""

#: ../../scripting-api.rst:984
msgid "If set to ``1``, the clipboard or item content will be hidden in GUI."
msgstr ""

#: ../../scripting-api.rst:986
msgid "This won't hide notes and tags."
msgstr ""

#: ../../scripting-api.rst:988
msgid "E.g. if you run following, window title and tool tip will be cleared."
msgstr ""

#: ../../scripting-api.rst:996
msgid "Application or global shortcut which activated the command."
msgstr ""

#: ../../scripting-api.rst:1006
msgid "Item color (same as the one used by themes)."
msgstr ""

#: ../../scripting-api.rst:1008
msgid "Examples: #ffff00 rgba(255,255,0,0.5) bg - #000099"
msgstr ""

#: ../../scripting-api.rst:1012
msgid "Name of the tab where to store new item."
msgstr ""

#: ../../scripting-api.rst:1014
msgid ""
"The clipboard data will be stored in tab with this name after all "
"automatic commands are run."
msgstr ""

#: ../../scripting-api.rst:1017
msgid "Clear or remove the format to omit storing the data."
msgstr ""

#: ../../scripting-api.rst:1019
msgid ""
"E.g. to omit storing the clipboard data use following in an automatic "
"command."
msgstr ""

#: ../../scripting-api.rst:1026
msgid "Valid only in automatic commands."
msgstr ""

#: ../../scripting-api.rst:1030
msgid "If exists the X11 selection data will be copied to clipboard."
msgstr ""

#: ../../scripting-api.rst:1032 ../../scripting-api.rst:1044
msgid "The synchronization will happend after all automatic commands are run."
msgstr ""

#: ../../scripting-api.rst:1038 ../../scripting-api.rst:1050
msgid "Valid only in Linux/X11 in automatic commands."
msgstr ""

#: ../../scripting-api.rst:1042
msgid "If exists the clipboard data will be copied to X11 selection."
msgstr ""

#: ../../scripting-api.rst:1053
msgid "Selected Items"
msgstr ""

#: ../../scripting-api.rst:1055
msgid ""
"Functions that get and set data for selected items and current tab are "
"only available if called from Action dialog or from a command which is in"
" menu."
msgstr ""

#: ../../scripting-api.rst:1059
msgid ""
"Selected items are indexed from top to bottom as they appeared in the "
"current tab at the time the command is executed."
msgstr ""

