在AppleScript中使用以下代码来进行pbcopy操作:
set the clipboard to "your text here" do shell script "echo " & quoted form of (the clipboard as string) & " | pbcopy"
其中,“your text here”需要替换为你想要复制到剪贴板的文本。
上一篇:AppleScript不能点击输入标签以添加文件。
下一篇:AppleScript不显示包含Unicode字符的对话框