pi1ot
V2EX  ›  macOS

alfred论坛上的search mail workflow安装后无法使用,请问如何解决

  •  
  •   pi1ot · Mar 31, 2013 · 8181 views
    This topic created in 4988 days ago, the information mentioned may be changed or developed.
    下载和讨论地址:
    http://www.alfredforum.com/topic/115-search-mailapp-workflow/

    帖中的各个mdfind命令我都试过,没有问题,命令行下可以返回结果,但是就是在alfred的呼出输入栏中输入“mail xxx”后无任何反应
    2 replies  •  1970-01-01 08:00:00 +08:00
    pi1ot
    pi1ot
    OP
    Mar 31, 2013
    1
    pi1ot
    pi1ot
    OP
    Apr 3, 2013
    2
    因为自己简单定制的mail search和上面这个(其实也是简单定制)只能显示标题和原始文件路径,所以又自学了一下php回去继续折腾前面那个search.php,因为他可以用发信人代替原始文件路径作为subtitle。
    经我折腾,发现是这两个问题,修正后就可以在中文10.8.3上正常搜索邮件:

    1、去掉类型限制,也就是search.php第17行的 (kMDItemKind == 'Mail Message') &&
    2、去掉搜索结果的utf8转码,也就是去掉32,33两行的htmlentities()调用

    然后就ok了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   931 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 21:41 · PVG 05:41 · LAX 13:41 · JFK 16:41
    ♥ Do have faith in what you're doing.