Guest User

Untitled

a guest
Jul 19th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. tell application "AntiRSI"
  2. launch
  3. end tell
  4.  
  5. set intnt to do shell script "ping -c 1 google.com; echo -n"
  6. set paras to number of paragraphs in intnt
  7. if paras < 5 then
  8. else
  9. tell application "System Events"
  10. tell process "Finder"
  11. keystroke "2" using option down
  12. end tell
  13. end tell
  14.  
  15. tell application "Safari"
  16. activate
  17. end tell
  18.  
  19. end if
  20.  
  21. delay 3
  22.  
  23. tell application "System Events"
  24. tell process "Finder"
  25. keystroke "1" using option down
  26. end tell
  27. end tell
  28.  
  29. tell application "iTerm"
  30. activate
  31. tell the first terminal
  32. launch session "Default Session"
  33. tell the last session
  34. write text "cd ~/src/clojure-projects/path/to/project/"
  35. write text "e ."
  36. write text "lein swank"
  37. end tell
  38. end tell
  39. end tell
Add Comment
Please, Sign In to add comment