Minimize Mail window Applescript
I want to open Mail and minimize it after opening. I got the opening Mail part but can't get the minimize part.
Running Catalina 10.15.3
Thanks
iMac Line (2012 and Later)
You can make a difference in the Apple Support Community!
When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.
When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.
I want to open Mail and minimize it after opening. I got the opening Mail part but can't get the minimize part.
Running Catalina 10.15.3
Thanks
iMac Line (2012 and Later)
It may be your problem is there's an inconsistent (and changing) term used to minimize the window - it even varies by app in some cases - but try this:
tell application "Mail"
launch -- launch opens the app in the background, rather than 'activate' which brings it frontmost
set miniaturized of every window to true
end tell
It may be your problem is there's an inconsistent (and changing) term used to minimize the window - it even varies by app in some cases - but try this:
tell application "Mail"
launch -- launch opens the app in the background, rather than 'activate' which brings it frontmost
set miniaturized of every window to true
end tell
Perfect
Thanks
Minimize Mail window Applescript