Home > XModules >

Requirements

  • OS X 10.9 or later
    • Developed and tested on macOS 10.14.6

Download

Version 3.0.7 -- 2020-05-19

Old Versions

Dependencies

Applications

TerminalCommander

TerminalCommander is an AppleScript library to help excuting shell commnads in Terminal.app. It is easy simple excution of shell commands in Terminal.app by using "do script" command. This libary provides following flexibily to control Terminal.app.

  • Customizing appearence of terminal to execute shell commands, for example, changing the terminal title and the settings set.
  • Send next command after completion of previous command.
  • By following a terminal window, Sending a command to same terminal window.
    • An instance of TerminalCommander remenber the terminal send a commnd. From next time, the terminal window is used by "do" and "do_with" command.
    • If the terminal window is lost, TerminalCommander can find a terminal window by specified custom title or specified working directory.
    • Setting of cwd-tty.sh is required to find a terminal window by specified woking directory. Execute cwd-tty.sh by source command in .zprofile or .bash_profile.
use TerminalCommander : script "TerminalCommander"

tell TerminalCommander's make_with_settings("Ocean")
set_custom_title("* Sample Terminal *")
set_execution_string("echo 'This is a new terminal.'")
do("ls -l")
wait_termination(300)
do_with({command:"echo 'You can execute command in the same terminal'", with_activation:false})
end tell

History

  • 3.0.7 -- 2020-05-19
    • Fixed : setting of woking directory (set_working_directory) is ignored.
  • 3.0.6 -- 2020-04-11
    • Removed dependencies on XList and XText
    • Fixed : two terminal window may opened with executing do handler when Terminal.app is not launched.
  • 3.0.5 -- 2020-02-12
    • Added English documents
  • ...
  • 1.0 -- 2004-04-15
    • First release