Categories
AppleScript Notes Unix Notes

Scripting Terminal.app

tell application "Terminal"
 do script with command "top -u -s10 10"
 set number of rows of window 1 to 18
 set number of columns of window 1 to 80
 set background color of window 1 to "black"
 set normal text color of window 1 to "yellow"
 set custom title of window 1 to "Top"
 set miniaturized of window 1 to true
end tell

One reply on “Scripting Terminal.app”

Great snippet, I can now open script the startup of multiple tomcat and tail-processes in different windows places evenly on the screen with descriptive window titles. Perfect!