2013-07-18 2 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

Try:

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

Но, где я могу найти содержание? в какой переменной? – agarici

+0

сказать приложение «Microsoft Word» ¬ \t set selText, чтобы получить контент выбора end tell –

Смежные вопросы