-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from r00k/main
Add trigger to hide Messages.app
- Loading branch information
Showing
5 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Hide Messages | ||
|
||
This trigger will hide the Messages.app automatically when you share your display. | ||
|
||
This can be handy to potentially save you from an embarassing moment. | ||
|
||
If you're executing this trigger for the first time, `System Events` may prompt you for permission. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"name": "Hide Messages.app", | ||
"description": "Automatically hide Messages.app when sharing your screen.", | ||
"platforms": ["macos"], | ||
"language": "applescript" | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [ -n "$TUPLE_TRIGGER_IS_SELF" ]; then | ||
osascript <<END | ||
tell application "System Events" to set visible of application process "Messages" to false | ||
END | ||
fi |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [ -n "$TUPLE_TRIGGER_IS_SELF" ]; then | ||
osascript <<END | ||
tell application "System Events" to set visible of application process "Messages" to true | ||
END | ||
fi |