Skip to content

Not starting app if it’s already running #311

Closed Answered by ttscoff
erikmartinessanches asked this question in Q&A
Discussion options

You must be logged in to vote

Looking at your Bunch, you're missing an end statement on the if block, but I don't know what all that's effecting. And the audio feedback is coming from the say command in the Example bunch, which is there as… an example :).

I tested your markup with the end statement added and VSC launched and didn't quit when I closed the bunch. I would note that the if not running statement is probably not necessary, if the app is already running the worst that will happen is it will be focused. But try adding the end statement and see if you get better results.

if Visual Studio Code is not running
	% visual studio code
end

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@erikmartinessanches
Comment options

Comment options

You must be logged in to vote
1 reply
@erikmartinessanches
Comment options

Answer selected by erikmartinessanches
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants