tianzhidao28
V2EX  ›  macOS

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

  •  
  •   tianzhidao28 · Dec 16, 2015 · 4049 views
    This topic created in 3979 days ago, the information mentioned may be changed or developed.

    tags

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

    用这个方法设置的注释,会被 spotlight 索引,也能查询到,但是不知道为什么在 Finder 里的 Get Info 窗口里却看不到
    tianzhidao28
    tianzhidao28
    OP
    Dec 17, 2015
    5
    谢谢了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   822 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 18:25 · PVG 02:25 · LAX 10:25 · JFK 13:25
    ♥ Do have faith in what you're doing.