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

2015-12-16 19:35:21 +08:00
 tianzhidao28

2913 次点击
所在节点    macOS
5 条回复
m4ker
2015-12-16 20:00:34 +08:00
看下 AppleScript 有没有接口
fatestigma
2015-12-16 20:43:22 +08:00
AppleScript 中 tell app "Finder" to set { comment | label index } of file to 。
另外 CLI 有个叫 tag 的可以方便操作文件的 tag ,详见 `brew info tag`
tanteng
2015-12-16 22:16:02 +08:00
ding
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
2015-12-17 01:03:15 +08:00
谢谢了

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/244013

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX