文本与档案实用工具指南
1. 文本扩展工具
1.1 TextExpander 使用技巧
在使用 TextExpander 时,有人可能会疑惑,既然 AppleScript 只是调用 shell 脚本,为何不直接使用 Shell Script 类型。实际上,在这种情况下,在 AppleScript 中调用 shell 脚本比直接运行 shell 脚本更快。
我创建了一个名为 ,sig 的缩写,内容类型为纯文本。具体内容设置步骤如下:
1. 首先,前往 [Cursor] Snippet RSG Email ,siga,插入调用 ,siga 代码片段的代码。
2. 接着,前往 [Cursor] Clipboard,插入让 TextExpander 粘贴剪贴板内容的代码。最终结果如下:
%snippet:,sig%%clipboard
当写完电子邮件时,无论使用 Gmail、Apple Mail 还是 Thunderbird,只需输入 ,sig,签名就会自动插入。TextExpander 会先调用 ,siga 代码片段,将动态生成且不断更新的签名文件内容复制到 Mac 剪贴板,然后将剪贴板内容粘贴到邮件中,效果如下:
--
R. Scott Granneman
[email protected] ~ www.granneman.com ~ granneman.tel
Full list of publications @ http://www.gra