Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use 'display notification' with sound parameter instead of 'System Events' on macOS #60

Conversation

FlorianLoch
Copy link
Contributor

While not being an Apple Script expert, I am under the impression that every time the caller/its parent process's fingerprint changes one needs to allow it to call System Events (again).

That does not seem to be necessary with display notification.
And as this also got a parameter for sound that might be the better approach?

Regarding backwards compatibility: this is mentioned in some doc from Apple that dates back by at least 6 years. So I assume this should cover all scenarios: https://developer.apple.com/library/archive/documentation/LanguagesUtilities/Conceptual/MacAutomationScriptingGuide/DisplayNotifications.html

WDYT?

@gen2brain gen2brain merged commit c7bb2cd into gen2brain:master Jan 12, 2024
3 checks passed
@gen2brain
Copy link
Owner

Merged, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants