I tried to use Apple script, but it didn't work.
Hope to get help, thank you!
————————————————————
mysettings:
on alfred_script(q)
tell application "System Events"
set textToType to "{query}"
keystroke textToType
end tell
end alfred_script
https://apple.stackexchange.com/questions/194567/how-can-i-use-applescript-to-type
——————————————————————————————
Running results: