hangyi Posted July 24, 2020 Share Posted July 24, 2020 (edited) Hi everyone, I'm learning the fantastic Script Filter input. One big question from me is how do I handle the arguments output of a Script Filter differently? For example, I have an item with the arg "~/Downlaods" which is the Downloads folder path, while another item with the arg "https://www.alfredforum.com" which is really a URL. If I connect this Script Filter with an Open URL action, it will only work for the second item since its a URL but not for the first one. How can I handle these two items differently? Edited July 24, 2020 by hangyi Link to comment
vitor Posted July 24, 2020 Share Posted July 24, 2020 If that’s your only use case, prepend file:// to the the file paths and make them absolute (i.e. file:///Users/hangyi/Downloads) and an Open URL will handle both. Otherwise, use a Conditional Utility. hangyi 1 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