Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide or close Terminal after process (enhancement) #3

Closed
Neberheim opened this issue Jun 16, 2018 · 5 comments
Closed

Hide or close Terminal after process (enhancement) #3

Neberheim opened this issue Jun 16, 2018 · 5 comments

Comments

@Neberheim
Copy link
Contributor

Is it possible for the entry to work in the background? I don’t love that Terminal pops into the foreground and remains open. I tried messing around with && exit and some other commands but I’m not sure how to execute the process properly.

@dricard
Copy link
Owner

dricard commented Jun 16, 2018

I don't think it's possible for the script to work in the background. DayOne offers a CLI tool but no other method of interaction. My doto script, which sends a todo to Things, works without the terminal because Things supports an URL scheme. Note that Things will open, so it's not exactly "working in the background."
As a developer Terminal (or rather iTerm) is always open, so it never bothered me, but I'll see if I can arrange something to at least close the Terminal after the command has worked. Would that be ok?

@dricard
Copy link
Owner

dricard commented Jun 17, 2018

Ok so I added an Alfred Workflow which quits the Terminal application after the script runs. You should probably change a default preference in Terminal. Follow these steps:

  • open Terminal preferences
  • select 'Profiles'
  • select the 'Shell' tab
  • select 'Never' in Ask before closing
  • select 'Close the window' under 'When the shell exits'
  • close the preferences' window

@dricard
Copy link
Owner

dricard commented Jun 17, 2018

So, install the new workflow and test it out after changing the Terminal preferences as described above.

@Neberheim
Copy link
Contributor Author

Excellent, thank you.

@dricard
Copy link
Owner

dricard commented Jun 18, 2018

You're welcome!

@dricard dricard closed this as completed Jun 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants