2014-01-25 107 views

回答

1

系統事件的應用程序和模擬按鍵很好的例子:

tell application "Terminal" to activate -- only needed if Terminal may not be running 

tell application "System Events"   
    tell application process "Terminal" 
     set frontmost to true 
     keystroke "echo Hello" 
    end tell   
end tell