默认情况是在 Mac 自带的 Terminal 中执行命令,如果你想在 Alfred 中执行,则需要通过如下命令自定义:
on alfred_script(q) tell application "iTerm" set _length to count window if _length = 0 then create window with default profile end if set aa to (get miniaturized of current window) if aa then set miniaturized of current window to false end if set bb to (get visible of current window) if bb is false then set visible of current window to true end if set cc to frontmost if cc is false then activate end if (*if _length = 0 then*) set theResult to current tab of current window (*else set theResult to (create tab with default profile) of current window end if*) write session of theResult text q end tell end alfred_script
键,可以预览文件内容。Alfred 中这个预览功能叫 Preview。当我们在 Alfred 搜到一些文件之后,按一下 Shift 按键,就可以预览对应文件内容。同时,在 Finder 中,也可以通过 Alfred 提供的预览功能预览文件,对应快捷键是 Command+y。预览然后输入数字即可数字转人民币