Created
December 15, 2022 16:15
-
-
Save aarondfrancis/f0671e537b3ff5f2261b3b854d9cac1d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/usr/bin/osascript | |
# Required parameters: | |
# @raycast.schemaVersion 1 | |
# @raycast.title Hide Everything | |
# @raycast.mode silent | |
# @raycast.packageName Recording | |
# Optional parameters: | |
# @raycast.needsConfirmation false | |
tell application "System Events" | |
tell dock preferences to set autohide menu bar to true | |
tell dock preferences to set autohide to true | |
do shell script "defaults write com.apple.finder CreateDesktop -bool FALSE;killall Finder" | |
end tell | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since your code is only for hiding, you can make it toggle with a single script like this: