我正在遵循以下说明:http :
//blog.mackerron.com/2009/05/19/paste-unformatted-keyboard-shortcut-office-2008-mac/ 在 Word 中运行良好。但是当我将下面的代码粘贴到 Applescript 并将其保存到时/Documents/Microsoft User Data/Excel Script Menu Items
,我收到了这个错误Syntax Error: Expected end of line, etc. but found “text”.
try
set theClip to Unicode text of (the clipboard as record)
tell application "Microsoft Excel" to tell selection to type text text theClip
end try
这里出了什么问题?