Home > XModules >

Requirements

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

Download

Version 1.0 -- 2020-04-15

InferiorTerminal

InferiorTerminal is a library to prepare a reserved terminal to execute commands send from AppleScripts.

InferiorTerminal always send commands to a terminal specified with a name of which default value is “* Inferior Terminal *”.

If your AppleScripts to run commands in Terminal.app open a new terminal every time, too many windows will be opened. By using this library, your scripts can send command to one terminal window always and you can prevent window cluttering.

To visually distinguish the terminal, the window title is changed to “* Inferior Terminal *” and a profile “Inferior Terminal” is applied to the terminal. If the profile “Inferior Terminal” does not exist, the settings set is generated by copying the default settings. By customizing the profile “Inferior Terminal”, you can change appearance of the terminal “* Inferior Terminal *”.

The name and the profile used for the terminal can be customized by utilizing a constructor method make_with.

use InferiorTerminal : script "InferiorTerminal"

InferiorTerminal's do("cd /Library; ls -l")

(* Customizing terminal name and settings *)
tell InferiorTerminal's make_with({title:"Hello", profile:"Ocean"})
do("cd /Library; ls -l")
end tell

History

  • 1.0 -- 2020-04-07
    • First release.