lmachado Posted June 25, 2014 Posted June 25, 2014 Apologies in advance if this question is already answered somewhere...I'm sure I'm not the first to ask, but I spent quite a while googling and searching this forum to no avail... Is it possible to pass the "enter"/"return" key through the "text" argument field? currently when I want to execute the workflow I need to hit the hotkey and then hit "enter" manually so that alfred executes the command...I would like for the hotkey to execute the command on its own without me having to hit "enter" separately. Is this possible? Or do I need to do this by modifying the script? If so, what's the correct way to tell the script to do this? Thanks in advance!
vitor Posted June 25, 2014 Posted June 25, 2014 Could you provide us with a link to the workflow in question? It’s difficult to help with your problem when we have no real notion of the specifics of its functionality.
lmachado Posted June 25, 2014 Author Posted June 25, 2014 (edited) i'm using the workflow found in the final post in this thread (post by BigHandsome) - I've embedded his post below. I've set F10 as my hotkey for "volume up": screenshot #1 of my workflow setup: https://www.dropbox.com/s/2h6py8wpzsh7q0g/Screenshot%202014-06-25%2016.16.06.png screenshot #2 of my workflow setup: https://www.dropbox.com/s/jyguzm7d2z4g4gl/Screenshot%202014-06-25%2016.16.12.png full thread: http://www.alfredforum.com/topic/1968-volume-adjust-workflow/ I really like your volume script. However, I really wanted to be able to use the true mute functionality. I have added mute, added some error checking, and changed how level works to account for mute. Please let me know what you think. I would love some feedback! Here is a link to the download: Volume Adjust Workflow Here is a link to the repository. Please fork me of file a bug ticket! Edited June 25, 2014 by lmachado
vitor Posted June 25, 2014 Posted June 25, 2014 Easy fix. You’re just making the connections to the wrong node.
lmachado Posted June 25, 2014 Author Posted June 25, 2014 that worked! thanks so much! now i'm trying to figure out how to use that workflow to bind mute/unmute to F8...looking through the script, it looks like mute and unmute are done using two separate arguments...so how can I set up a single hotkey to do both?
vitor Posted June 25, 2014 Posted June 25, 2014 You just need mute and unmute, instead of up and down.
lmachado Posted June 26, 2014 Author Posted June 26, 2014 i thought so, but alfred won't let me assign the same hotkey (ie F8) twice...how do i get around that? also, when i hook up "mute" to the applescript node and trigger it, the notification saying "The volume has been muted" pops up, but nothing else happens - my computer's volume remains unmuted...any idea why? Thanks again!
rice.shawn Posted June 26, 2014 Posted June 26, 2014 If you're trying to do a single hotkey for mute/unmute, then just send it the same argument but have it check the state of mute/unmute and make it register the opposite. So, instead of it being mute/unmute, think of it as Toggle Mute.
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