This is very simple. Just can't get it right.
I am making a alfredworkflow, where I want to take a URL, then curl / wget (program doesnt matter) in terminal. If I can do this in the background that would be excellent, but if it needs to open terminal I can live with that.
So far what I have:
tell application "Google Chrome"
set theURL to URL of active tab of window 1
end tell
tell application "Terminal"
activate
do script "echo "${theURL}
end tell