Scriptable Application Example
问题 Evidently, there's a way to make my GUI application scriptable with AppleScript. So for instance, I could have a command line app (like run from a LaunchDaemon) that tells my GUI app to post a sidebar notification. Does anyone have a simple example to explain this? Everything I've seen on the Apple website is hard to understand. I want to create an AppleScript message like: tell "My App" to notify with title "Title" subtitle "subtitle" text "some text" in my CLI app and then my GUI app wakes