Jump to content
nyadam

[SOLVED] Best way to launch application with params from Alfred

Recommended Posts

Hello, I'd like to be able to launch a specific application from Alfred but I need to specify a parameter when launching it - what's the best way to do this? To be specific the application is Steam.app and I need to pass the -nofriendsui parameter. Preferably I'd like this to replace the single application entry that already exists in Alfred but any solution would be appreciated.

 

Thanks in advance.

Share this post


Link to post

@vitor that's great thank you! The only slight annoyance now is how Alfred sorts the entries as the application has a higher priority than the workflow, is there anything I can do to either blacklist that application or make the workflow sort above it?

image.thumb.png.b005a9d803a9dc96d2b1063e36fc4b31.png

Share this post


Link to post
Posted (edited)
1 hour ago, nyadam said:

blacklist that application

 

System Preferences → Spotlight → Privacy. Drop the Steam app in the box.

 

1 hour ago, nyadam said:

or make the workflow sort above it?

 

Alfred sorts results by “frecency” (a mix of  how frequently and recently you selected it), so pick it a few times on purpose and it’ll be given higher priority.

Edited by vitor
Fixed typo.

Share this post


Link to post
16 hours ago, vitor said:

 

System Preferences → Spotlight → Privacy. Drop the Steam app in the box.

 

 

Alfred sorts results by “frecency” (a mix of  how frequently and recently you selected it), so pick it a few times on purpose and it’ll be given higher priority.

Hey @vitor! Thank you for the tips. I tried the first one and unfortunately Steam is greyed out, I'm really new to macOS so maybe I'm just missing some kind of privilege escalation thing I need to do, however, I have opened it several times now to prioritise it and that is working great as it now sorts above Steam.app! I'd still love to remove the original from the menu since it's basically a duplicate but if there's no way it's not a huge problem.

image.thumb.png.359af245a2a6049074cf7f387db66ba3.png 

Share this post


Link to post
Posted (edited)
7 minutes ago, vitor said:

Instead of using the +, drag Steam directly into the box.

Perfect, thank you.

Edited by nyadam

Share this post


Link to post

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
×