Sending Keystrokes over ARD

First Open the Remote Desktop application located in /Application/Remote Desktop. Next select the computer you want to send the keystrokes to.


                  


Click on UNIX from the Toolbar.

                                                                      

Type in the following, replacing the quoted text after “keystroke”. In this example this will type “Text To Send” on the destination computer(s).

osascript -e 'tell application "System Events" to keystroke "Text To Send"'

                                                         


If no one is logged in to the computer you will need to modify the “Run Command as:” option. You will have to choose a User, you can type in the local administrator to the computer or “root”.



                                                                  


In the top right you can save it as Template if you will need to use it more than once.


                                                               


Now you can send the command to selected computer(s).


                                                         



Tags

  • Apple
  • Macbook
  • SSD
  • Linux

Categories

  • Hints 210