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!
totalterminal.binaryage.com
VisitIs 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