I'm trying to make a workflow which when invoked by a hotkey will hide the extensions of the files currently selected in OS X but I'm not too sure how Alfred's "Selection in OS X" hotkey action panel works and there seems to be dearth of documentation about it. What exactly does this action panel pass to a script (e.g.: a string)? What is the normal way of receiving this input in a script (e.g.: with "{query}" or with something else)? Does this behaviour vary between different types of scripts (i.e.: bash, AppleScript etc.)?
I set up a simple workflow and found that return "{query}" posted a notification as expected when run from the Run Script action panel (with all delimiters unchecked) but not when run from the Run NSApplescript action panel (with the alfred_script(q) wrapper). Why is this? Is there anything else I should know about the "Selection in OS X" hotkey action panel?