-
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.
- Loading branch information
Showing
3 changed files
with
5 additions
and
5 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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# Hide Messages | ||
|
||
This hook will hide the Messages.app automatically when you go to share your display. | ||
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. | ||
|
||
When being executed for the first time, `System Events` will prompt for permissions. | ||
If you're executing this trigger for the first time, `System Events` may prompt you for permission. |
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
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [ -n "$TUPLE_HOOK_IS_SELF" ]; then | ||
if [ -n "$TUPLE_TRIGGER_IS_SELF" ]; then | ||
osascript <<END | ||
tell application "System Events" to set visible of application process "Messages" to true | ||
END | ||
fi | ||
fi |