改变的AppleScript所谓通知图标 [英] Change the icon of an applescript-called notification

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

问题描述

使用OSX小牛队,我们现在可以通知与AppleScript的 pretty容易。然而,似乎没有要改变,似乎一个自定义的图标的方法。有没有办法做到这一点?

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天全站免登陆