V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
tianzhidao28
V2EX  ›  macOS

Mac 下怎么用脚本给 文件 或文件夹 添加注释

  •  
  •   tianzhidao28 · 2015-12-16 19:35:21 +08:00 · 2905 次点击
    这是一个创建于 3054 天前的主题,其中的信息可能已经有所发展或是发生改变。

    tags

    5 条回复    2015-12-17 01:03:15 +08:00
    m4ker
        1
    m4ker  
       2015-12-16 20:00:34 +08:00
    看下 AppleScript 有没有接口
    fatestigma
        2
    fatestigma  
       2015-12-16 20:43:22 +08:00   ❤️ 2
    AppleScript 中 tell app "Finder" to set { comment | label index } of file to 。
    另外 CLI 有个叫 tag 的可以方便操作文件的 tag ,详见 `brew info tag`
    tanteng
        3
    tanteng  
       2015-12-16 22:16:02 +08:00
    ding
    lululau
        4
    lululau  
       2015-12-16 22:58:23 +08:00
    http://stackoverflow.com/questions/8530825/mac-os-x-add-a-custom-meta-data-field-to-any-file

    用这个方法设置的注释,会被 spotlight 索引,也能查询到,但是不知道为什么在 Finder 里的 Get Info 窗口里却看不到
    tianzhidao28
        5
    tianzhidao28  
    OP
       2015-12-17 01:03:15 +08:00
    谢谢了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1094 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 23:19 · PVG 07:19 · LAX 16:19 · JFK 19:19
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.