Last active
October 17, 2016 09:27
-
-
Save TheNorthEestern/5363962 to your computer and use it in GitHub Desktop.
A simple AppleScript that allows you to toggle the transparency of the active iTerm window. Best implemented as a service through Automator (and mapped to an unused keyboard shortcut of your choosing).
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
tell application "iTerm" | |
if the transparency of the current session of the current terminal > 0 then | |
set the transparency of the current session of the current terminal to 0 | |
else | |
set the transparency of the current session of the current terminal to 0.2 | |
end if | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm getting
Expected “then”, etc. but found identifier.
when I try to run the script.