Created
May 18, 2018 18:47
-
-
Save melmatsuoka/e662090cd3d1b4bd3237b8d53f7cb571 to your computer and use it in GitHub Desktop.
Launch macOS app in minimized state.
This file contains hidden or 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
-- Launches BusyCal in minimized mode. | |
-- If it's already running, then don't do anything. | |
tell application "System Events" to (name of processes) contains "BusyCal" | |
if the result is false then | |
activate application "BusyCal" | |
tell application "System Events" | |
set visible of process "BusyCal" to false | |
end tell | |
end if |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment