1

我想为应用程序 Alfred 做一个扩展,我想让输出转到应用程序窗口。要理解我的意思(假设您有 Alfred),请在 Alfred 文本框中输入“2+3”。您将看到它显示“5”作为结果项,并且可以通过按 Return 将其复制到剪贴板。有没有办法通过扩展来做到这一点?咆哮结果越来越烦人,而且 90% 的时间都是不切实际的。

4

2 回答 2

0

如果您想要的是在 Alfred 的文本输入框中输入文本,那么 @Blacklight 的答案将为您提供很好的服务。如果您想为自定义搜索显示结果,您将需要使用众多Alfred 库之一。如果您想编写 Alfred 脚本而不是搜索某些文本(如@Blacklight 的回答),您应该查看External Triggers最新版本的 Alfred。

于 2014-09-22T22:09:08.113 回答
0

Yes it is possible. It is more like a workaround since you can't chain outputs to inputs at present, but it's an "official" workaround.

You can simply use an osascript (Apple script) as an output in which you call Alfred and insert your {query} as an argument into an input:

tell application "Alfred 2" to search "keyword {query}"

If you use the same keyword as in your original input you will have to distinguish somehow if your argument is typed in or automatically inserted by your output. You can also use a new input with a different keyword.

Have a look here: Alfred forums

于 2013-10-14T17:13:37.930 回答