小编Zad*_*ade的帖子

AppleScript 将剪贴板粘贴到当前应用程序中

我以为这会很简单...

我想要一个启动普通剪辑的 AppleScript,然后将剪贴板粘贴到光标所在的当前文档中。我的脚本启动Plain Clip(一种不会窃取焦点的格式清除应用程序),但它不会粘贴新的剪贴板。有任何想法吗?

tell application "Plain Clip" to activate
delay 1
tell application "System Events" to tell (name of application processes whose frontmost is true) to keystroke "v" using {command down}
Run Code Online (Sandbox Code Playgroud)

applescript paste text-formatting

5
推荐指数
1
解决办法
6152
查看次数

标签 统计

applescript ×1

paste ×1

text-formatting ×1