Tomasz Banas Posted June 24, 2017 Share Posted June 24, 2017 I'm trying to create a very simple workflow 1. Keyword: mic (with space) argument required http://d.inco.re/J07mwL 2. Run Script osa script set volume input volume {query} http://d.inco.re/0y7Fq 3. Post Notification Microphone Volume Set to {query} % http://d.inco.re/dceme2 I have no idea any notification does not show {query} at all Thanks in advance for all your help. Link to comment
deanishe Posted June 24, 2017 Share Posted June 24, 2017 If you're having problems with a workflow, please post the workflow. Screenshots are not enough. The problem is most likely that you aren't actually sending any input to the Show Notification element, but without having the actual workflow, I'm just guessing. Link to comment
vitor Posted June 24, 2017 Share Posted June 24, 2017 @Tomasz Banas The AppleScript is just setting the volume; it’s not returning it. Hence you’re passing nothing from step two to three. Adding return {query} at the end of the second step should work. But like @deanishe pointed out, in the future please post the non-working Workflow. I’m not absolutely certain of my fix because I don’t have the actual Workflow to test. Link to comment
Tomasz Banas Posted June 26, 2017 Author Share Posted June 26, 2017 I'm sorry, good point Here's the workflow - http://d.inco.re/ecE6uA Link to comment
vitor Posted June 26, 2017 Share Posted June 26, 2017 @Tomasz Banas The earlier tip was correct. Add return {query} at the end of the Run Script, and it’ll work. You should also add a Transform action before Post Notification, like so: And tell it to Trim Whitespace: Otherwise you’ll not see the % sign, as it’ll be in a different line (due to the return). Link to comment
Tomasz Banas Posted June 26, 2017 Author Share Posted June 26, 2017 18 minutes ago, vitor said: @Tomasz Banas The earlier tip was correct. Add return {query} at the end of the Run Script, and it’ll work. You should also add a Transform action before Post Notification, like so: And tell it to Trim Whitespace: Otherwise you’ll not see the % sign, as it’ll be in a different line (due to the return). Now it stopped working http://d.inco.re/a69OLC Link to comment
vitor Posted June 26, 2017 Share Posted June 26, 2017 2 minutes ago, Tomasz Banas said: Now it stopped working You’ll need to be more specific than that. Seems to work fine, here. Notice I’m only checking if the notification outputs, not the mic volume. Also, here’s another way to do it. You won’t need the return or the Transform. This is your original Workflow, just with nodes connected in a different way. Link to comment
Tomasz Banas Posted June 26, 2017 Author Share Posted June 26, 2017 Great, it works now. Thank you. 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