2014-01-17 81 views
0

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

set a to system info 
set the clipboard to a 

回答

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