Advertisement
Guest User

Untitled

a guest
Mar 17th, 2018
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/env osascript
  2.  
  3. tell application "System Events" to keystroke tab using command down
  4. delay 0.1
  5.  
  6. try
  7.    set getClip to the clipboard as text
  8. on error
  9.    set getClip to " "
  10. end try
  11.  
  12. tell application "System Events"
  13.    repeat with i from 1 to count characters of getClip
  14.        keystroke (character i of getClip)
  15.        delay 0.03
  16.    end repeat
  17. end tell
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement