Change the notification icon in an applescript -
i've written couple applescripts me automate frequent repetive tasks , use notifications identify when script has finished. able change icon on notification, displays 'script editor' icon.
i've save script files applications , changed icons of script.app file still shows default 'script editor' icon. ideas? below example of applescript code i'm using display notification picture of notification
display notification "this message" title "this title"
you should place icon in applications resource folder. or give same name default icon file. applet.icns , replace original.
if choose use new file , not replace original have change name of icon file in info.plist file.
some things note.
the icon image size may need no bigger 256px , found although app file icon changed notifications did not if bigger. ( may mac)
make sure right first time. if change mind on icon once system has picked there seems bug continue show old 1 if have delete record of it.
yosemite seems caching how.
the way found t around when wanted change icon again save anew app different name.
your app file icon may not change straight away in finder. 1 way around select app file , duplicate it. copy pick icon
Comments
Post a Comment