Table of Contents

What's Run in Terminal ?

Requirements

Enable GUI Scripting

History

License
Donation

Kurita Tetsuro
scriptfactory@mac.com

Script factory

Run in Terminal

Wnat's Run in Terminal ?

“Run in Terminal” is an AppleScript application to run a script or an exectable file of the frontmost context in Terminal.app

When the frontmost application is Finder, the frontmost contest means a selected file. When the frontmost application is an editor, a script file opened as a front document will be executed in Terminal.app.

"Run in Terminal" works in the background because to access the front document. "Run in Terminal" does not apear in the Dock and the front application is not switched.

This application must be launched through a launcher application. For example,

The other features are :

  • When the target file is not given execution permission, command in shebang of the file is used to execute the file.
  • When file name is “Makefile” or file extension is “.mk”, the file is passed as an argument to “make -f” commnd.
  • When shift key is pressed or capslock is on at launching, a dialog to enter arguments will be opened.
  • The customi title of the terminal window is changed to “* Inferior Terminal *”.
  • The profile “Inferior Terminal” is applyed to the terminal.
    • The profile “Inferior Terminal” will be made at first launching.
    • To cutomize appearance of the terminal, chagen settings of the profile “Inferior Terminal”.

Requirements

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

Enable GUI Scripting

"Rename It" require permission to control your computer using accesibility features (GUI Scripting). When the application is launched at the first time, following dialog will be displayed.

Pressing "Open System Preferences" cause to open "System Preferences" and to add the applicaiton into the "Accessibility" list of the "Privary" tab of the "Secutiry & Privacy" pane. Turn the check box of the application on.

History

  • 1.0 -- 2020-04-15
    • First release