Hi. So I got my new 27" Dell monitor and I have noticed that when I resize my apps on my MacBook Air when connected to the monitor the apps no longer fill the screen on the MacBook Air when not connected to the monitor and the other way around. So i'm trying to make a "fix" with some Apple Script. As of now I have made two apps, the one resizes the apps to the size I like when connected to the monitor and the other one for the MacBook Air. But when I activate the script it opens all the apps I have chosen, so here comes my question. Is there some way I can tell the same script to close the apps after the have been activated?
As of now I got this code in my script.
As of now I got this code in my script.
Code:
tell application "lala1" to activate
tell application "lala2" to activate
tell application "lala3" to activate