luckman212 Posted February 18 Share Posted February 18 (edited) Can the https://www.alfredapp.com/help/workflows/utilities/split-arg/ workflow action be coerced into splitting on the NUL byte, a-la xargs -0? When I try to pass a Script Filter's output with its arg set to a NUL-separated string, I get an error like this... Edited February 18 by luckman212 Link to comment
vitor Posted February 20 Share Posted February 20 Wouldn’t you be better served by simply passing multiple arguments? arg can be an array. Link to comment
luckman212 Posted February 20 Author Share Posted February 20 Sorry, I haven't had my morning coffee yet but– I'm not following you Vitor. How can I output an array from my Script Filter? Link to comment
vitor Posted February 20 Share Posted February 20 It’s a regular JSON array. Instead of "arg": "one coffee" you do "arg": ["first coffee", "second coffee"]. That will be passed to the next object as multiple arguments. Oh, and good morning! luckman212 1 Link to comment
luckman212 Posted February 20 Author Share Posted February 20 (edited) Holy crap. It works. 🤯 Is this a new feature (that arg can be an array)? I have been using Alfred for 7 years and never knew this. Edited February 20 by luckman212 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