From d15c3fd4ff29dc03475e45581532c072c7a2075a Mon Sep 17 00:00:00 2001 From: Chris Bailey Date: Tue, 13 Aug 2024 00:40:38 -0400 Subject: [PATCH] Hide Application --- .../navigation/hide-application.applescript | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 commands/navigation/hide-application.applescript diff --git a/commands/navigation/hide-application.applescript b/commands/navigation/hide-application.applescript new file mode 100755 index 000000000..f9574a4fd --- /dev/null +++ b/commands/navigation/hide-application.applescript @@ -0,0 +1,18 @@ +#!/usr/bin/osascript + +# @raycast.schemaVersion 1 +# @raycast.author Chris Bailey +# @raycast.authorURL https://raycast.com/that70schris +# @raycast.description Easily hide your foremost application +# @raycast.packageName Navigation +# @raycast.title Hide Current Application +# @raycast.mode silent +# @raycast.icon 🫥 + +tell application "System Events" + tell (first process whose frontmost is true) + set _name to displayed name + end tell + + set visible of application process _name to false +end tell