I'd like to capture everything I type into Spotlight and use the text as input for a script, possibly a new instance of a Services workflow.
From that point of course anything is possible; the most trivial case for the workflow script is to simply log its input:
echo "$*" >> /home/myFolder/myLog
- If there is in fact a system log for Spotlight's queries, this would be interesting information and would not answer my question [completely].
- I am aware that the Service may have to be spawned for each keystroke, since Spotlight shows new results as you type.