Closed okayjeffrey closed 4 years ago
hi, @okayjeffrey . I watched the output you posted, it looks right .
you can see the snippet:
"quicklookurl": "https://translate.google.com/#view=home&op=translate&sl=de&tl=en&text=testen",
"arg": "/var/folders/fk/5c3q4j6911lg5993psshss_w0000gn/T/9d9066c1-e2b6-497f-8727-36b8b38a066c.mp3",
"text": {
"copy": "testing",
"largetype": "testing"
}
those three properties are the workflow used.
arg : STRING (recommended)
The argument which is passed through the workflow to the connected output action.
text : OBJECT (optional)
The text element defines the text the user will get when copying the selected result row with ⌘C or displaying large type with ⌘L.
quicklookurl : STRING (optional)
A Quick Look URL which will be visible if the user uses the Quick Look feature within Alfred (tapping shift, or cmd+y).
copy from Script Filter JSON Format.
the arg
value will passed to the bash script(the voice) action by tapping enter, and the text
, quicklookurl
used the default hotkey.
as you mention, speak the text works, i think it means there is no problem with the outputs. but, you can not copy the item or do other actions like largetype and quicklook, its weird.
im not sure if its caused by your alfred not support the text
and quicklookurl
properties, or caused by the hotkey conflict.
could you check the alfred version and the hotkey please?
hi @okayjeffrey , if you got the correct result as you expected. i'll close this issue.
if you have any questions, you could reopen it or raise a new issue.
In alfred when on the 1st or 2nd item I can not copy, lookup or do any of the action commands you outlined. It will only speak the text.
Note: I over wrote this to just spit out the text translation in the index.js file by using the toText variable instead of the toArg
This output isn't very interesting or informative but hope it helps.
Output when hitting [Enter]
Output if I hit [CMD] + [Enter]