All Projects → binaryage → totalterminal-osax

binaryage / totalterminal-osax

Licence: other
SIMBL replacement for TotalTerminal (Visor)

Programming Languages

Objective-C++
1391 projects
objective c
16641 projects - #2 most used programming language

TotalTerminal.osax

This source code implements scripting additions used by TotalTerminal.

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

Visit 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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].