[英]mac display-notification's icon
I write in nodejs 我用nodejs写
var exec = require('child_process').exec;
var pwd = 'osascript -e \'display notification "'+path.basename(des)+'" with title "'+ name + time +'"\''
exec(pwd, function (error, stdout, stderr) {
})
It comes likes 它喜欢
How could it be like 怎么会这样
Question : 题 :
How can i change the icon display on left? 如何更改左侧的图标显示?
There's already an answer for this on AskDifferent . AskDifferent已经有一个答案 。
As of the Apple Documentation
display notification
does not have a parameter to change te icon.从Apple文档开始,
display notification
没有用于更改te图标的参数。
display notification
will use the icon of your script.display notification
将使用脚本的图标。 One of your option is to change the icon of your bundle (cf screen).您的选择之一是更改包的图标(参见屏幕)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.