Trying to automate the process of setting up my MacBook when I turn it on in the morning.
I have to open 7 applications but I don't need all their windows open.
I'd like to run a script that opens these 7 applications but then closes the window of some and leaves the windows of others open.
For example:
I'd like the process to open Google Chrome, Slack & Microsoft Teams all in full screen. However I also need Keeper Password Manager opened but the window closed as I use the shortcut in the top menu bar and not the application window itself. There is also an application called SonicWall Mobile Connect that needs to open but I don't require it's window to be open.
You can use the following code:
Since you are working with multiple applications, you should repeat this code for every one, but don't repeat the "use scripting additions" part. If you want to keep an app's window open, then leave out the "tell application "AppName" to if it is running then close its front window" part. I hope you find this useful!