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 .
Post
Replies
Boosts
Views
Activity
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 .