The thing is - I'm doing the same thing every morning. I'm a js developer, but most of the time I'm working with react native and I have Xcode opened all the time. iOS developers know, that if you want to work with Xcode you need to restart your MacBook every day, maybe twice a day... maybe every time Xcode stops to compile your absolutely valid code.

So, every morning I restart my MacBook and then run all of my applications: WebStorm, Xcode, Android Studio, Chrome, Slack, Typora, iTerm, Debugger, etc...Then in Chrome I open gmail, trello, GitHub, appcenter, and so on. Every single morning I need to do all of this, it's not a lot of time, but driving me crazy.

How to automate this process?

First I wrote a shell script that will open all my apps and put the alias to the bash profile. But the problem is I need to open a terminal and then run the script. It's much better, but not the ideal solution.

Reference to the shell script (with apple script as well)

#!/bin/bash
say Morning Avi, preparing your workspace
echo "Openning Browser"
open "https://gmail.com"
open "https://trello.com"
open "https://github.com"
open "https://appcenter.ms"

echo "Openning IDE's"
open -a "WebStorm"
open -a "Xcode"
open -a "Android Studio"

echo "Openning Debugger"
open -a "React Native Debugger"

echo "Openning Chats"
open -a "Slack"
open -a "WhatsApp"

echo "Openning iTerm"
open -a "iTerm"
say All systems go
exit

It works. But need something more. I want to make this script available from the spotlight. To do so, you just need to rename your file and add at the end of the file .command. Then it will be recognized as an action item for the spotlight.

So, every morning I open a spotlight and type my script name and hit enter... That's all. The important thing - I don't want to run all these programs on a startup by default.

The script is not ideal but helps. What next should I do? I need to open iTerm with saved workspace by shortcut.

Have a nice day