更改一个名为 Applescript 的通知的图标 [英] Change the icon of an applescript-called notification

查看:30
本文介绍了更改一个名为 Applescript 的通知的图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 OSX Mavericks,我们现在可以非常轻松地使用 applescript 发送通知.但是,似乎没有办法更改显示为自定义图标的图标.有没有办法做到这一点?

With OSX Mavericks we now can make notifications with applescript pretty easily. However, there doesn’t seem to be a way to change the icon that appears to a custom one. Is there a way to accomplish this?

推荐答案

显示通知 将采取应用程序图标.您可以在applescript 应用程序的bunlde 内容中设置图标.

display notification will take application icon. You can set icon in bunlde content of applescript application.

set fileName to choose file "Select a Folder"
display notification "Parag Bafna" subtitle "Its working" & fileName

display notification    text    required
with title  text    optional
subtitle    text    optional
sound name  text    optional

这篇关于更改一个名为 Applescript 的通知的图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆