Advertisement
Guest User

Untitled

a guest
Jul 7th, 2015
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. (choose from list {"Large", "Laptop"} with prompt "Which Screen Size?")
  2. set screen_size to result as text
  3.  
  4. set window_group to "Common"
  5.  
  6. if (screen_size = "Large") then
  7. set window_group to "Freightlink_large"
  8. end if
  9.  
  10. if (screen_size = "Laptop") then
  11. set window_group to "Freightlink_laptop"
  12. end if
  13.  
  14. set cd2project to "cd ~/Documents/projects/canvas_starter_app/"
  15. set cd2projectClient to "cd ~/Documents/projects/canvas_starter_app/client"
  16.  
  17. tell application "Terminal" to activate
  18.  
  19. delay 0.5
  20.  
  21. tell application "Terminal" to activate
  22.  
  23. tell application "System Events"
  24. tell process "Terminal"
  25. tell menu item "Close All" of menu "Shell" of menu bar item "Shell" of menu bar 1
  26. click
  27. end tell
  28. end tell
  29. end tell
  30.  
  31. tell application "System Events"
  32. tell process "Terminal"
  33. tell menu item window_group of menu "Open Window Group" of menu item "Open Window Group" of menu "Window" of menu bar item "Window" of menu bar 1
  34. click
  35. end tell
  36. end tell
  37. end tell
  38.  
  39. tell application "Terminal"
  40.  
  41. do script cd2project in window 4
  42. do script "subl ." in window 4
  43. delay 1
  44. do script "foreman start -f Procfile.rails" in window 4
  45. delay 1
  46. do script cd2projectClient in window 3
  47. do script "nodemon webpack.hot.js" in window 3
  48. do script cd2projectClient in window 2
  49. delay 1
  50. do script "node_modules/karma/bin/karma start" in window 2
  51. do script cd2project in window 1
  52. do script "foreman start -f Procfile.ngrok" in window 1
  53. end tell
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement