2013-07-18 42 views

回答

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 
0

嘗試:

tell application "Microsoft Word" to get selection's content 
+0

但是,我在哪裏可以找到的內容?在哪個變量? – agarici

+0

告訴應用程序「Microsoft Word」¬ \t設置自選文件以獲取選擇的內容 end tell –

相關問題