MacOS – Automator app in notification centre

automatormacosnotifications

I've made an Automator application that runs displays a notification and then runs a shell script. Works fine. However, the notification centre doesn't display the name of the application, but instead shows some garbled code. I'm using Mavericks. How can I fix this?

enter image description here

Best Answer

In Finder, go to ThisAutomatorThing.app

Right click. Show Package Contents.

Go to folder /Contents/, and open Info.plist file with a text editor. Find something like:

<key>CFBundleName</key>
<string>6ARbL3D-C0D4</string>

If the string is exactly the gibberish in notification, replace it with you app name.

You MIGHT need to 1) reset LaunchServices to delete the old cache and reflect the change:

/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user

AND/OR, 2) reset LaunchPad:

rm ~/Library/Application\ Support/Dock/*.db;killall Finder