-
Notifications
You must be signed in to change notification settings - Fork 5
Home
Dylan edited this page May 13, 2022
·
4 revisions
Welcome to the sm2uploader!
在 macOS 中,如果你希望更简便的使用 sm2uploader 来发送文件到打印机,可以使用 Automator 来快速执行:
- 在 Automator 新建 Quick Action
- 从 Library 中拖动 Run AppleScript 到 workflow 中
- 输入
on run {input, parameters}
set uploader to "/PATH/TO/sm2uploader-darwin-arm64" -- 这里填写程序路径
set tfiles to ""
repeat with f in input
set p to POSIX path of f
set tfiles to (tfiles & " " & p)
end repeat
tell application "Terminal"
activate
do script uploader & " " & tfiles
end tell
return input
end run
- 保存为 SM2Upload
- 从 Finder 选择需要上传的文件,右键 - Quick Actions - SM2Upload
- 完成!