nikivi Posted October 5, 2017 Share Posted October 5, 2017 (edited) I want to make a workflow where I trigger an external trigger and pass in a path like ~/Users/nikivi/ in there. However I can't seem to do that. Essentially I want something like this : But instead of hotkey trigger, trigger it externally and pass in text to Alfred. Edited October 5, 2017 by nikivi Link to comment
nikivi Posted October 5, 2017 Author Share Posted October 5, 2017 Never mind, this works : I thought I could do it from Alfred. Link to comment
nikivi Posted October 5, 2017 Author Share Posted October 5, 2017 Oh even better. I can just open Alfred and type ~ Forgot about that one. Link to comment
deanishe Posted October 5, 2017 Share Posted October 5, 2017 Have you ever actually read the sample AppleScript in an External Trigger? tell application "Alfred 3" to run trigger "settings" in workflow "net.deanishe.alfred-appscripts" with argument "test" with argument "test" Link to comment
nikivi Posted October 5, 2017 Author Share Posted October 5, 2017 (edited) That sample applescript doesn't matter for me though. Because I call them with Applescript like this after : tell application "Alfred 3" to run trigger "duckduckgo" in workflow "net.deanishe.alfred-searchio" with argument "ducks" My question was whether I could pass this argument directly to Alfred. Edited October 5, 2017 by nikivi Link to comment
deanishe Posted October 5, 2017 Share Posted October 5, 2017 That is passing the argument directly to Alfred… Link to comment
nikivi Posted October 5, 2017 Author Share Posted October 5, 2017 Yeah but to a certain workflow. Actually I am stupid. I remembered Alfred had this : tell application "Alfred 3" to search "/Users/nikivi" Link to comment
nikivi Posted October 5, 2017 Author Share Posted October 5, 2017 In any way, I started a little wiki where I share things I learned. Both for myself and hopefully other people who are into asking silly questions. Link to comment
deanishe Posted October 5, 2017 Share Posted October 5, 2017 Right. Because you originally said External Trigger: 2 hours ago, nikivi said: I want to make a workflow where I trigger an external trigger and pass in a path like ~/Users/nikivi/ in there. As you noticed, entering ~ does the same thing. So your AppleScript should be: tell application "Alfred 3" to search "~". It's more portable. Shouldn't hardcode paths without a very good reason. 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