macos 下面命令行获取二维码图片并 copy 到剪贴板的工具

2015-01-02 16:23:42 +08:00
 powerfj
https://github.com/junfan/txt2qr
3243 次点击
所在节点    分享创造
5 条回复
cattail
2015-01-02 21:19:56 +08:00
pheyer
2015-01-03 14:45:27 +08:00
这是什么情况呢,用的Mac OS X 10.9
[admin@Aurora txt2qr]$ sudo txt2qr http://www.qq.com
/Users/admin/tmp/txt2qrcode.png: No such file or directory
2015-01-03 14:43:56.894 osascript[1575:3b1b] sandbox extension creation failed: file system representation creation error for path: [/Users/admin/tmp/txt2qrcode.png]
2015-01-03 14:43:56.894 osascript[1575:3b1b] __CFPasteboardCreateSandboxExtensionDataFromCFData : failed to obtain sandbox extension data for url [file:///Users/admin/tmp/txt2qrcode.png]
powerfj
2015-01-03 19:13:17 +08:00
@pheyer 应该是没有~/tmp目录,你看看是否没有.
pheyer
2015-01-03 20:34:16 +08:00
@powerfj 是这个问题,代码里应该加一下检测tmp目录是否存在,如果不存在就创建啊
powerfj
2015-01-03 20:55:57 +08:00
@pheyer 新的已添加

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

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

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

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

© 2021 V2EX