Last active
December 31, 2021 05:14
-
-
Save sbimochan/98f516b2060515b377fadc759bb75b43 to your computer and use it in GitHub Desktop.
Daily work flow automation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/osascript | |
tell application "iTerm2" | |
tell current session of current tab of current window | |
split vertically with default profile | |
split vertically with default profile | |
write text "cd ~/projects/myFavProject" | |
write text "code ." | |
end tell | |
tell second session of current tab of current window | |
write text "cd ~/projects/myFavProject" | |
write text "git fetch --all --prune" | |
write text "npm run start" | |
end tell | |
tell third session of current tab of current window | |
write text "cd ~/projects/myFavProjectBackend" | |
write text "git fetch --all --prune" | |
write text "npm run start:dev" | |
end tell | |
end tell | |
# Open applications | |
tell application "Google Chrome" | |
open | |
open location "https://your-jira-url" | |
open location "https://your-pull-requests-url" | |
end tell | |
tell application "Mail" | |
open | |
end tell | |
tell application "Slack" | |
open | |
activate | |
end tell | |
tell application "Spotify" | |
play | |
end tell | |
# Only applicable for mac machines | |
# Save it as work.scpt and | |
# Execute it by `osascript work.scpt` | |
# or create an alias for it |
Also you can create an alias for it
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Of course configure it as your choice.