Jump to content

Call another workflow within a workflow (just send a command)

Recommended Posts

I'm trying to build a workflow for watching movies.  I want to automatically set the volume to 100% and brightness on the main display to 0%.


With the Volume Control workflow, I can use "vol 100" to set the volume.



And with Brightness, I can use "brightness 0" to set the display brightness.



How can I send these commands within another workflow?  I want to have a single workflow that sends both commands and does some other things.


EDIT: Ok, I see I can call other workflows via Applescript if I add an external trigger to them.  However, how do I send a new line character?  For example, I tried to set the brightness to 0 by calling an AppleScript like this:

tell application "Alfred 3" to run trigger "AlfredBrightness" in workflow "com.fniephaus.brightness" with argument "0"


However, this brings Alfred up on screen, waiting for me to press enter to proceed.  I also tried this:

tell application "Alfred 3" to run trigger "AlfredBrightness" in workflow "com.fniephaus.brightness" with argument "0



However, this simply puts the line break character in the Alfred search box instead of pressing Enter.  How do I get it to press enter/send a new line character?

Edited by ptmkenny
research update

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.

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...