2014-01-17 86 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