用来处理标签的两个as脚本

环境与前提

系统:macOS 11.4
命令行工具:Tag (项目地址:https://github.com/jdberry/tag
macOS上可以通过HomeBrew来安装:brew install tag

添加标签

choose from list {"Not Started", "Processing", "Delay", "Someday", "Completed"} default items {"Not Started"} with title "?Select Tags"
set tagname to result as text

tell application "Finder"
  set sel to the selection as alias list
  repeat with theItem in sel
    do shell script "tag --add " & tagname & " " & (POSIX path of theItem)
  end repeat
end tell

移除标签

tell application "Finder"
  set sel to the selection as alias list
  repeat with theItem in sel
    do shell script "tag --set zero " & (POSIX path of theItem)
    do shell script "tag --remove zero " & (POSIX path of theItem)
  end repeat
end tell

 本篇
用来处理标签的两个as脚本 用来处理标签的两个as脚本
环境与前提系统:macOS 11.4命令行工具:Tag (项目地址:https://github.com/jdberry/tag)macOS上可以通过HomeBrew来安装:brew install tag 添加标签choose from
2021-07-29
下一篇 
湖北省分区域最低工资标准(2021) 湖北省分区域最低工资标准(2021)
​省人民政府办公厅关于调整全省最低工资标准的通知 各市、州、县人民政府,省政府各部门: 为贯彻落实党中央、国务院决策部署和省委、省政府工作要求,努力实现居民收入增长和经济增长基本同步,让广大人民群众共享改革发展成果,更好保障劳动者个人及其家
2021-07-28
  目录