chadv Posted Wednesday at 03:57 AM Share Posted Wednesday at 03:57 AM Hi, I have a workflow with a File Picker variable in the Configuration Builder. I want to use the basename of this file in the Placeholder Title of a Script Filter. For example, if I choose "~/Documents/abc.txt" in the workflow configuration, I'd like the placeholder to say "Search abc.txt". Can it be done with a single user-configurable variable? Thanks, Chad Link to comment
Stephen_C Posted Wednesday at 05:06 AM Share Posted Wednesday at 05:06 AM You can use the Automation Task Get Path Basename. Stephen Link to comment
chadv Posted Thursday at 04:47 AM Author Share Posted Thursday at 04:47 AM Thanks, @Stephen_C. I saw that node, but how would I wire it into the Placeholder Title of a Script Filter that is triggered by a keyword? Link to comment
Stephen_C Posted Thursday at 05:10 AM Share Posted Thursday at 05:10 AM Can you not, near the start of the workflow, extract it using the Automation Task and then set it as a variable which is then displayed as you wish in the script filter? (Sorry to sound a little clueless but to say I'm not very good with script filters is something of an understatement!) Stephen Link to comment
chadv Posted Thursday at 05:33 AM Author Share Posted Thursday at 05:33 AM Thanks again. I tried: Get Path Basename > Arg and Vars > Script Filter, but when I trigger the Script Filter, the upstream nodes don't run, and so the new variable does not seem to be available. Link to comment
vitor Posted Thursday at 08:41 AM Share Posted Thursday at 08:41 AM Objects run in order from their connections, from left to right. You need a trigger at the start. Link to comment
chadv Posted Thursday at 03:22 PM Author Share Posted Thursday at 03:22 PM Thanks, @vitor. That's what I figured. It's sounding like my idea is not currently possible. 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