Guest User

Untitled

a guest
Jun 19th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. tell application "<APP_NAME>" to activate
  2. tell application "<APP_NAME>" to activate
  3. tell application "<APP_NAME>" to activate
  4. # Change 'defaultFolder' to your 'Projects' folder.
  5. set defaultFolder to alias "<PATH:TO:FOLDER:>" # Use ':' instead of '/'
  6. set projectFolder to (choose folder with prompt "Select project folder" default location defaultFolder)
  7. set projectFolder to POSIX path of projectFolder
  8. tell application "Terminal"
  9. # Change 'code' for 'sublime' or any text editor.
  10. do script "cd " & projectFolder & " && git pull && code . && history -c"
  11. end tell
Add Comment
Please, Sign In to add comment