我想从Apple-Script中获取Word 2011中活动文档中的选定文本。
由于
答案 0 :(得分:0)
尝试:
tell application "Microsoft Word" to get selection's content
答案 1 :(得分:0)
我已经尝试了这个,并且它有效
tell application "Microsoft Word"
activate
try
set selectedText to content of text object of selection
display dialog selectedText buttons {"OK"}
on error
display dialog "erreur" buttons {"OK"}
end try
end tell