How do I focus a specific window with applescript without doing an activate and bringing other windows to the front?
Solution 1:
You're right that the activate
command raises all windows. The open
shell command only raises one window though:
tell application "Google Chrome" to set index of window 1 where title contains "whatever" to 1
delay 0.05
do shell script "open -a Google\\ Chrome"