Skip to content

Instantly share code, notes, and snippets.

@hiulit
Last active June 18, 2018 08:15
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save hiulit/4868f32255ef3a45e12ebda98cb09c20 to your computer and use it in GitHub Desktop.
Open desire folder and dev tools on startup
tell application "<APP_NAME>" to activate
tell application "<APP_NAME>" to activate
tell application "<APP_NAME>" to activate
# Change 'defaultFolder' to your 'Projects' folder.
set defaultFolder to alias "<PATH:TO:FOLDER:>" # Use ':' instead of '/'
set projectFolder to (choose folder with prompt "Select project folder" default location defaultFolder)
set projectFolder to POSIX path of projectFolder
tell application "Terminal"
# Change 'code' for 'sublime' or any text editor.
do script "cd " & projectFolder & " && git pull && code . && history -c"
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment