Thanks, deanishe
In fact, this is a fork from ethan-funny/Google-Alfred3-Workflow, which have some issues with the proxy module (as I need proxy to access Google in China).
Also, the upstream workflow outputs a string in the form of "query;url" in order to copy url & copy url as markdown later. For me QuickLook is as important as Markdown. If I simply change the arg to URL, QuickLook works but Markdown fails.
So I was trying to find a way in which arg is still a URL and the script sets a variable of the title to form markdown - [$title](URL). That was the only solution I could think up. After some googling, I came up to your post. [[HOW TO] Workflow/environment variables](http://www.alfredforum.com/topic/9070-how-to-workflowenvironment-variables/). I followed your ways to set variables and successfully got variable $title, but QuickLook failed.
That's the whole story behind this post.
As to the out of date library, maybe I need to rewrite the workflow with your advanced Alfred-Workflow lib. I'm wondering is there a easy way to achieve my demands based on the existing codes. If not, I shall move on to the rewriting work.