chadv Posted May 24, 2023 Share Posted May 24, 2023 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 May 24, 2023 Share Posted May 24, 2023 You can use the Automation Task Get Path Basename. Stephen Link to comment
chadv Posted May 25, 2023 Author Share Posted May 25, 2023 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 May 25, 2023 Share Posted May 25, 2023 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 May 25, 2023 Author Share Posted May 25, 2023 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 May 25, 2023 Share Posted May 25, 2023 Objects run in order from their connections, from left to right. You need a trigger at the start. Link to comment
chadv Posted May 25, 2023 Author Share Posted May 25, 2023 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