Toxblh/MTMR

copy and paste button

xunshichentuo opened this issue · 1 comments

May I know how to add custom buttons, such as copy and paste

   { // Copy
        "type": "staticButton",
        "title": "Copy",
        "action": "appleScript",
        "actionAppleScript": {
        "inline": "tell application \"System Events\" to key code 8 using {command down}"},
        "width": 60,
        "align": "left",
        "name": "Copy"
    },

    { // Paste
        "type": "staticButton",
        "title": "Paste",
        "action": "appleScript",
        "actionAppleScript": {"inline": "tell application \"System Events\" to key code 9 using {command down}"},
        "width": 60,
        "align": "left"
    }