Skip to content

Commit

Permalink
Hide Application
Browse files Browse the repository at this point in the history
  • Loading branch information
that70schris committed Aug 15, 2024
1 parent c50cc84 commit d15c3fd
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions commands/navigation/hide-application.applescript
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d15c3fd

Please sign in to comment.