An open API service indexing awesome lists of open source software.

https://github.com/binaryage/totalterminal-osax

SIMBL replacement for TotalTerminal (Visor)
https://github.com/binaryage/totalterminal-osax

Last synced: 2 months ago
JSON representation

SIMBL replacement for TotalTerminal (Visor)

Awesome Lists containing this project

README

          

# TotalTerminal.osax

This source code implements scripting additions used by [TotalTerminal](http://totalterminal.binaryage.com).

**TotalTerminal** is a plugin for Apple's Terminal.app which brings Visor (famous Quake console) and more!

### Visit [totalterminal.binaryage.com](http://totalterminal.binaryage.com)

## Is this a replacement for SIMBL?

Yes, this is SIMBL-lite tailored specifically for TotalTerminal.

## BATTinit event

Installs TotalTerminal.bundle into running Terminal.app (/Applications/TotalTerminal.app is just a wrapper app for this script)

tell application "Terminal"
-- give Terminal some time to launch if it wasn't running (rare case)
delay 1 -- this delay is important to prevent random "Connection is Invalid -609" AppleScript errors
try
«event BATTinit»
on error msg number num
display dialog "Unable to launch TotalTerminal." & msg & " (" & (num as text) & ")"
end try
end tell

## BATTchck event

Check if TotalTerminal is present in running Terminal image.

tell application "Terminal"
-- give Terminal some time to launch if it wasn't running (rare case)
delay 1 -- this delay is important to prevent random "Connection is Invalid -609" AppleScript errors
try
«event BATTchck»
set res to "present"
on error msg number num
set res to "not present"
end try
res
end tell

## More applescript commands

### Show visor window (BATTvish)

tell application "Terminal"
try
«event BATTvish»
on error msg number num
display dialog "Unable to show visor." & msg & " (" & (num as text) & ")"
end try
end tell

### Hide visor window (BATTvihd)

tell application "Terminal"
try
«event BATTvihd»
on error msg number num
display dialog "Unable to show visor." & msg & " (" & (num as text) & ")"
end try
end tell

### Is visor window hidden? (BATTvih_)

tell application "Terminal"
try
set res to («event BATTvih_»)
on error msg number num
display dialog "Unable to show visor." & msg & " (" & (num as text) & ")"
end try
res
end tell