如何将系统信息复制到剪贴板?

时间:2014-01-17 15:25:12

标签: applescript

我正在创建一个将System Info复制到剪贴板的程序。我已经尝试将变量设置为系统信息并复制该变量,但它只复制我的AppleScript版本(2.2.4)。请帮忙!我的代码如下:

set a to system info
set the clipboard to a

1 个答案:

答案 0 :(得分:0)

您需要将记录强制转换为列表...

set a to (system info) as list
set AppleScript's text item delimiters to linefeed
set a to a as text
set the clipboard to a
相关问题