I think this is a poor fit for a workflow, tbh. It’s a hell of a job trying to decipher all the info.plists in your prefs bundle (work out all the Hotkey modifiers etc.) and impossible to navigate Alfred Preferences from a workflow the way ? does.
Depends how you look at it, I suppose. As a tool for navigating rapidly to a workflow in Alfred Preferences, ? would benefit from the kind of fuzzy matching Alfred supports for applications in its main search. If it's supposed to be a source of information for help purposes, it would be better served with more and better metadata than looser matching, imo.
For example, I tried to find the Hotkey I’d set up to open the current selection in Dropover yesterday. I ended up grepping my prefs bundle because Open URL/File are completely opaque to ? and the only element-specific search terms Alfred recognises for a Hotkey Trigger are “hotkey” and “trigger”.
Why can't I find Hotkeys (or Open URL/File) elements based on the applications they're assigned to? Or their notes, seeing as they can't have any other unique text?
My personal preference would be to put snippets behind a separate keyword (e.g. ?snip), so they don’t overwhelm other results, and to use much richer metadata for searching. SQLite fulltext search seems a natural fit. Then you can bung absolutely everything in there (notes, workflow descriptions etc.) as long as you assign appropriately low priority.
I don't think you're getting that far. The way you're trying to join the URL is all wrong. It needs to be:
set myVariable to "some string" & someVariable & "another string"
You forgot the & signs.
As regards URL-encoding: AppleScript can't do it. Unless you can find a function someone has written, you'll need to use a different language for that.