xfslove / alfred-google-translate

Alfred 3 workflow - translate with google api💵🚫
MIT License
619 stars 65 forks source link

获取不到Selection in macOS #50

Closed SpringHerald closed 4 years ago

SpringHerald commented 4 years ago

选中一些文本,按快捷键后弹出的框中没有内容。 这个是debug输出的日志

[15:58:56.549] Google Translate[Hotkey] Processing complete
[15:58:56.553] Google Translate[Hotkey] Passing output '' to Script Filter

但是如果选项改成macOS clipboard contents就能用,弹出的框中就有内容。

macOS 10.14.6, node v12.12,Alfred 4.0.6破解版

xfslove commented 4 years ago

这个应该不是workflow的问题,感觉会不会是和你其它软件冲突了

或者看看是不是你alfred没有macOS的Accessibility权限

SpringHerald commented 4 years ago

找到解决方法了:https://www.alfredforum.com/topic/11711-alfred-37-beta-for-mojave-beta-4/

quit Alfred then open the macOS Security & Privacy > Accessibility preferences. Remove both Alfred 3 and Alfred Text Service, then restart your Mac.

luoluoluo22 commented 4 years ago

我按照题主的办法尝试,没有找到 alfred3,重启也没有成功,后来发现是我的安装包问题,我安装的是 alfred4.1.1(1171)汉化版,其中的功能有缺陷,就是不能从 macos 中获取内容。重新下载英文原版(已破解)就可以了。推荐下载链接: https://pan.baidu.com/s/1DTX1U_FA-xgXEHtUzKZhwQ 密码: 1234

Jancd commented 1 year ago

我按照题主的办法尝试,没有找到 alfred3,重启也没有成功,后来发现是我的安装包问题,我安装的是 alfred4.1.1(1171)汉化版,其中的功能有缺陷,就是不能从 macos 中获取内容。重新下载英文原版(已破解)就可以了。推荐下载链接: https://pan.baidu.com/s/1DTX1U_FA-xgXEHtUzKZhwQ 密码: 1234

你这提取码也不对撒....