Post

Replies

Boosts

Views

Activity

[macos ,swiftui ] How to observe the new notification event?
I want to make a Dock application for my self . So I need to get the running application's badge count , then can show it on the Dock , let user know there has new notifications . but now , I want to ask ,how swift can observe the new notification event ? I am new at this .
Replies
0
Boosts
0
Views
1.4k
Activity
Jan ’23
How would I Activate a window using its Window index on applescript?
I open two windows of vscode , now I want to activate vscode with specific index or name . I don't know how to write the script . tell application "Google Chrome" to set index of window 2 to 2 delay 0.05 do shell script "open -a Google\\ Chrome" it work with chrome ,but dont work with visual studio code .
Replies
1
Boosts
0
Views
1.7k
Activity
Jan ’23