Alfred workflow 教程

2018-07-30  本文已影响528人  浮生随笔

Alfred workflow 教程

简介

新创建一个空白的workflow


image
image

空白区,点击鼠标右键


image

知识点:{query} 可以接收上个模块的输出参数
如果是输出多个参数,那就是{var:var1,var:var2}

Triggers 触发器

image

Hotkey 热键触发

image
image
image

Remote 远程触发

注意,这个触发器对象与远程对象是分离的。这里提供的图像和名称是建议默认的,并在使用中复制到Remote中。只要保持标识符的一致性,就可以删除和替换对象。

image

Snippet 片段触发

image

External 扩展触发

触发该触发器后会执行一段Applescript 脚本

image

Connect Action

联系人Action,这个具体干什么笔者也没搞清楚。

Fallback search

select the title and subtext you would like to use for this keyword based input.
these represent the text you see in Alfred’s results when using the keyword.

选择您希望用于这个基于关键字的输入的标题和字幕。这些代表在使用关键字时在Alfred的结果中看到的文本。

Inputs 输入

image

关键字

image

文件过滤器

image image

Search Scope 设置的是可搜索范围。需要手动将文件夹拖入条目范围中,即可。

image image

语言过滤器

预言过滤 具体也不知道能干啥。

image

List过滤器

image

这就相当于 编程预言里面的 switch case

Script filter 脚本过滤器

image

Action 行为

image

打开文件

用某个APP打开指定文件。

image

Reveal file in the finder 打开文件所在位置

browse in Alfred

Launch APPs

Default web search

image

open URL

image

System Command

image

iTunes Command

image

Terminal Command

通过终端APP 运行终端命令组件

Run Script

运行脚本

Run NSAppleScript

运行apple 脚本

Utilities 实用工具

image

Arg and Vars

image

JSON Config

通过输入的参数 自行组合成自己想要的json文本

Junction 结点

这个只是处理复杂逻辑的节点。如果线条逻辑过多 错综复杂的时候 可以通过节点来处理。

Filter

Delay

Transform

Replace

Hide Alfred

Debug

Outputs 输出

image

Post Notification 发送本地通知

发送本地通知。Alfred 3 的本地推送不好用,一直没成功。

Large Type 大文字显示

大文字显示 一些文本。

Copy to Clipboard copy文本到粘贴板

复制结果到粘贴板

Write Text File 把text写入文件

将text文本写入文件

Play Sound 播放声音

播放声音

Dispath Key Combo 按键连击

Call External trigger 触发别的触发器

上一篇 下一篇

猜你喜欢

热点阅读