AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Mac notification sounds4/11/2023 ![]() ![]() AppleScript: Mac notification with a sound If you’re comfortable writing AppleScript, this part is straightforward. Running this code creates a notification in the MacOS Notification Center that looks like this: The code looks like this in the AppleScript Editor: To get started, here’s the code for a basic “Hello, world” AppleScript notification: ![]() A “Hello, world” MacOS AppleScript notification Near the end of the tutorial I show how to invoke the AppleScript code using Scala, so feel free to skip down to there if you just want to see that - you can always read the stuff at the top for reference later. In this article it helps if you already know a little bit about AppleScript, though that’s not completely necessary. Summary: This tutorial demonstrates how to fire macOS system notifications with AppleScript and Scala (or Java). ![]()
0 Comments
Read More
Leave a Reply. |