更新时间:2023-11-02 23:10:04
这小小的丑陋作品可以加载 image.jpg
到剪贴板上...
This little piece of ugliness works and loads "image.jpg"
onto the clipboard...
#!/usr/bin/env python3
import subprocess
subprocess.run(["osascript", "-e", 'set the clipboard to (read (POSIX file "image.jpg") as JPEG picture)'])