macOS/iOS自动化指南

用automator自拍并保存文件到剪贴板

2017-02-12  本文已影响13人  鸭梨山大哎

打开automator并新建app
如图设置


Paste_Image.png

代码如下

on run {input, parameters}
    set thisFile to item 1 of input
    set the clipboard to (read thisFile as TIFF picture)
    return thisFile
end run

参考
https://macosxautomation.com/automator/actions.html#workflow-folder-path

上一篇下一篇

猜你喜欢

热点阅读