I can get this to work but only after I noticed a notification (how ironic) from Tinderbox asking to be allowed to sent notifications.
If you miss that prompt go to System Preferences / Notifications & Focus and enable notifications from Tinderbox. In macOS 13 the location may be different in the iOS-ified preferences. It’s annoying the the OS is so poor about surfacing requests form apps that my not know the ever changing Apple security protocols that keep turning things off that used to work. I understand the security impetus, but it would be hlep to know something that should work now doesn’t, because of OS changes.
If the application defined by the package name (in this case com.microsoft.VSCode) is focused, the notification is not “pushed” to the user under default settings . Instead it is hidden in the notification center. When the application in question is not focused, though, the notification is pushed properly.
With hindsight, as ever, this makes sense. The notification is OS wide. If you are already in the app making the system wide notification, why would you need to know? Another assumption tested and found to be less clear than imagined.
I think (from some googling) that an alert looks the same as a notificationbut shows ‘on top’ regardless. My hunch is that would require a different call out from the app, IOW a new/different operator.
After adding something from Safari I often split the note “manually” via Note > Split (as Note > Explode often can’t be used due to missing structure). I then copy the “original” note’s URL to use a stamp that sets it for the resulting notes. The stamp’s first step is to check whether there’s a URL in the clipboard, if not I’d like to see a notification. Using runCommand to show the notification via AppleScript will be fine.
Just wondered as in the past notify showed notifications when Tinderbox was frontmost.
What I don’t understand: why does it still work on your mac but not on mine (macOS 12.6.1)?