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 .