Jump to content
Sign in to follow this  
Zork

Script filter arguments

Recommended Posts

Beginner here, so please be kind ;)

 

I have a script filter that accepts an argument.

 

An item's arg value is passed as the argument from the script filter to the next workflow component.

 

Questions:

 

1) What happens to the original argument supplied to the script filter?

2) If both the original argument and arg value of an item are passed, how is each referenced in the next workflow component?

3) Can I somehow combine the original argument with the arg value of the items (to be parsed out in the next component)?

 

EDIT: Following this post, I looked into David Ferguson's thread on How To with Script Filters and gleaned quite a bit... Still, I'd like to hear others' approaches :)

Edited by Zork

Share this post


Link to post

Beginner here, so please be kind ;)

 

I have a script filter that accepts an argument.

 

An item's arg value is passed as the argument from the script filter to the next workflow component.

 

Questions:

 

1) What happens to the original argument supplied to the script filter?

2) If both the original argument and arg value of an item are passed, how is each referenced in the next workflow component?

3) Can I somehow combine the original argument with the arg value of the items (to be parsed out in the next component)?

 

EDIT: Following this post, I looked into David Ferguson's thread on How To with Script Filters and gleaned quite a bit... Still, I'd like to hear others' approaches :)

 

When generating the Script Filter output, you could simply set the arg value to the generated arg and the original input separated by some delimiter and then split the {query} variable in the next step. You could also have the script filter write the original input to a temporary file and then read that file in the next step as well. Just depends on how you want to do it.

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.

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

Sign in to follow this  
×
×
  • Create New...