youbbs
youbbs
4294 0 0

webwindow:一个使用osascript 的go 项目

osascript 可以在 MAC 系统作桌面通知,下面是一个用 osascript + web 来在系统弹出的窗口上做“桌面应用”。

https://github.com/tnantoka/webwindow

osascript 命令行示例

$ osascript -e 'display dialog "Hello from youbbs.org" with title "Hello"'
button returned:好
$ osascript -e 'display dialog "Hello from youbbs.org" with title "Hello"'
0:57: execution error: 用户已取消。 (-128)
$ osascript -l JavaScript test.js
aa
$ cat test.js 
console.log("aa");
$

osascript 文档 https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man1/osascript.1.html

0

See Also

Nearby


Discussion

Login Topics