Jump to content

Trouble passing fixed value through to script


Recommended Posts

I am trying to pass a fixed value as an input to a script.

 

In particular, I am using the Layouts (Simple Window Manager v2.1.0) workflow with Alfred.  It works fine.  I can use a "left" arrow "hotkey" combination with the "pass through to workflow" setting to tell the Layouts script to move a window left.  (See screenshot 1).

 

Since one workflow can't call another, I am trying to copy the Layouts functionality to another workflow.  All I want is to pass the value "left" as a "pass through to workflow" so that it is an input to the Layouts script. 

 

I tried using the "Arg and Vars" utility to do this, but it is not working.  (See screenshot 2).

 

Does anyone have an idea how to do this or what I am doing wrong? 

 

Thanks for your help!

 

1.jpg

2.jpg

Link to comment
54 minutes ago, MasterDiver69 said:

Since one workflow can't call another

 

It can via an External Trigger.

 

Could you please upload the broken workflow somewhere and post a link?

 

It’s very hard to say what’s wrong from just a description and a screenshot. 

Link to comment

Here is the sample workflow.  The left arrow hotkey will move a window to the left side of your screen.  The right arrow hotkey will move a window to the right side of your screen.

 

In the attached workflow example, I was trying to get a Google web page opened and moved to the left and a Safari web page opened and moved to the right, by passing "left" or "right" as the input to the script.

 

https://www.dropbox.com/s/2bpbepzwlgh6zhv/Layouts - Test.alfredworkflow?dl=0

Link to comment

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
×
×
  • Create New...