copy and paste button
xunshichentuo opened this issue · 1 comments
xunshichentuo commented
May I know how to add custom buttons, such as copy and paste
juanfernandocalderon commented
{ // 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"
}