use a Terminal window to execute a Shell Script?

Talk, speculate, discuss, pontificate. As long as it pertains to Hazel.

Moderators: Mr_Noodle, Moderators

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?
scratchmare
 
Posts: 1
Joined: Tue Jan 09, 2024 2:51 am

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.
Mr_Noodle
Site Admin
 
Posts: 11285
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

MevetS
 
Posts: 1
Joined: Sat Jan 08, 2022 10:08 pm

That it is. Probably an AI rehash. Will keep an eye on that account.
Mr_Noodle
Site Admin
 
Posts: 11285
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Open Discussion