alfred-notification-dismisser icon indicating copy to clipboard operation
alfred-notification-dismisser copied to clipboard

UK/Australian Engish on MacOSX changes Application Names ie Notification Centre (not er)

Open daeta opened this issue 4 years ago • 3 comments

I had to edit the script to change "Notification Center" to "Notification Centre" for the Applescript to work.

Ref https://gist.github.com/bezhermoso/5f45ace434a7b03c963a

Error: ./Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.EF3601E2-4357-4A62-B7E4-6805DE99B20A/dismiss-active-notifications.applescript:1067:1074: execution error: System Events got an error: Can’t get process "Notification Center". (-1728)

Can you update to check for both names?

Thanks for increasing my productivity on Monday Morning!

daeta avatar Nov 29 '20 03:11 daeta

Heya, thanks for reporting this interesting bug! Do you maybe know if the name is localized for languages other than English? Then I would search using the application id which should be the same in all languages...

And glad you like this small script 😄

zakyum avatar Dec 03 '20 11:12 zakyum

Looks like its language specific. I changed my Language to Spanish and got: Centro de notificaciones (712)

On Thu, 3 Dec 2020 at 22:46, zakyum [email protected] wrote:

Heya, thanks for reporting this interesting bug! Do you maybe know if the name is localized for languages other than English? Then I would search using the application id which should be the same in all languages...

And glad you like this small script 😄

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/zakyum/alfred-notification-dismisser/issues/1#issuecomment-737891776, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTQXP7TKLIAIL4HM4NKISTSS53C7ANCNFSM4UGHAOKA .

-- "I cannot be sure for certain, but in my personal opinion, I'm certain, I'm not sure." Ficus from Quark.

David Robinson - 0412 458 477 - [email protected]

daeta avatar Dec 04 '20 04:12 daeta

Okay, I have an idea on how to internationalize it, i.e. what to substitute for the search by name. Tho, will implement in about a week or two as I currently have other work and this isn't anything urgent.

zakyum avatar Dec 07 '20 20:12 zakyum