Jump to content

Option to automatically close terminal after running command from Alfred


Recommended Posts

I'm not sure... This is what I have as the command in the workflow and it works (set the active directory to Desktop and transcode a video file that I selected in Finder). Adding "exit" or ";exit" doesn't do anything, the Terminal (or iTerm2) window stays open.


It does exit, however, when I paste the three lines directly into Terminal.

cd /Users/stooovie/Desktop
other-transcode {query}



Edited by Stooovie
Link to comment
Share on other sites

Yeah. You need to send all the commands at once, not on three separate lines: cd /Users/stooovie/Desktop && other-transcode {query} && exit


It’s better to use && than ; because the tab won’t close if something goes wrong, and you’ll be able to see the error message.


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...