Skip to content

Commit

Permalink
Merge pull request #956 from that70schris/master
Browse files Browse the repository at this point in the history
Hide Application
  • Loading branch information
adilrc authored Aug 30, 2024
2 parents 803776e + d15c3fd commit e59aadb
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 e59aadb

Please sign in to comment.