Jump to content
Florian

[SOLVED] Workflow to make terminal frontmost app, and open app if necessary

Recommended Posts

Hey all,

I haven't been active in this community for a long time (though I used to a lot!). And I haven't really been keeping up with the updates. 

 

I'd like to have a workflow that would let me assign a keyboard trigger to open a terminal and make it the frontmost app. If the app was already open, just switch to it. If it wasn't, open it and switch to it. Does something like this exist already? If not, how can I make it? It seems very straightforward but glancing at the examples in the workflow tab of Alfred, I couldn't immediately see how to...

 

Thanks for any help thrown my way,

Cheers.

Share this post


Link to post
1 hour ago, Florian said:

I haven't been active in this community for a long time (though I used to a lot!).

 

Welcome back. Not your first comeback from absence, I recall!

 

1 hour ago, Florian said:

I'd like to have a workflow that would let me assign a keyboard trigger to open a terminal and make it the frontmost app. If the app was already open, just switch to it. If it wasn't, open it and switch to it.

 

What you’re looking for is the Launch Apps and Files Action.

Share this post


Link to post

Thanks! This works great now. Now that you've reminded me, I remember trying to use this workflow object and it didn't handle well hiding the apps and I had to write an NSAppleScript for this (which didn't age well). Now it's flawless!

 

And yeah, I've never stopped using Alfred, but now that I'm actually paid to write code, I have less time and motivation to maintain public workflows so I'm not active here at all anymore...

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...