willfarrell Posted July 18, 2014 Posted July 18, 2014 I'm working on v2 of https://github.com/willfarrell/alfred-pkgman-workflowCurrently I'm passing in the {query} to a script filter and on enter passing the url in the `arg` param to a `Open URL` action. The urls follow no pattern sadly. In V2 I would like to be able to press `cmd` and have a custom string copied and pasted into a package file instead of the url. Is there a way to detect what action modifier is being pressed from within the script filter, {action}, to allow the script filter to change the arg being passed? I'm trying to keep the workflow as clean as possible and easy to extend in the future.
smarg19 Posted July 19, 2014 Posted July 19, 2014 You cannot dynamically change the arg. Instead, pass both possible args and then split on the Action side and use whichever one relates to the mod key.
willfarrell Posted July 22, 2014 Author Posted July 22, 2014 That's what I'm doing now. Was hoping there might be a simplified way. thanks.
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