Page 1 of 1

use a Terminal window to execute a Shell Script?

PostPosted: Tue Jan 09, 2024 2:54 am
by scratchmare
Hello, I have a rule that uses an embedded script to "Run Shell Script" on files that match.

The embedded script uses the matching file as an input to run some Python code, output some results, etc. The text output of the embedded shell script and the generated Python code are "invisible" when using the Run Shell Script method since I am unable to see the Python print outputs (maybe they are available through a Hazel log or something).

To view the outputs, though, I would prefer to actually run the script using Terminal (opening a new window or tab). Is it feasible to do this?

Re: use a Terminal window to execute a Shell Script?

PostPosted: Tue Jan 09, 2024 10:01 am
by Mr_Noodle
If you do not need to return results to Hazel, then you can probably do that. You can try using the "open" command with your script and setting the application to Terminal. Or possibly do it via AppleScript.