I'm doing something similar, but it leaves Alfred open. Here's my osascript:
tell application "Alfred 2" to search "openurl {query}"
But in this case, it should immediately hit enter. I don't know anything about Apple script, so hoping that's a snippet to simulate enter. I'm also guessing there's another command to open a new tab in Chrome and go to that URL, but I couldn't figure that out.
Any good tutorials for Apple script?