gandalfsaxe Posted September 25, 2019 Share Posted September 25, 2019 Hi, Is it possible to press a specified hotkey, and then have Alfred launch/hide app1, app2 or app3 depending on whether the hostname on my current machine is machine1, machine2 or machine3? The use case would be to use the same hotkey on all my computers for opening different versions of portable Visual Studio Code. Link to comment
gandalfsaxe Posted September 25, 2019 Author Share Posted September 25, 2019 I just realized that I do this by adding a symlink to e.g. /Applications, and then just pointing Alfred to that. Problem solved I'll go with this solution, but if anyone happens to know the answer to my original question, feel free to leave it here for future reference 😊 Link to comment
deanishe Posted September 25, 2019 Share Posted September 25, 2019 You can get the hostname of the current computer by running hostname (or hostname -s for the short name) in a Run Script action with Language = /bin/bash and using a Conditional utility to go from there. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now