Skip to content

Instantly share code, notes, and snippets.

@TheNorthEestern
Last active October 17, 2016 09:27
Show Gist options
  • Save TheNorthEestern/5363962 to your computer and use it in GitHub Desktop.
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).
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
@raine
Copy link

raine commented May 11, 2015

I'm getting Expected “then”, etc. but found identifier. when I try to run the script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment