AppleScript -> Activate window of a non-scriptable application
问题 I have opened 2 "Finder" window A & B, A is in the front while B underneath, the following snippet brings B to the front the topmost: tell application "Finder" activate activate window 2 end tell But for applications that do not support scripting, the code just mentioned won't help. Any ideas for activating a window of non-scripting application. 回答1: You can usually turn to system events in these cases. System events knows about the windows of running processes and you can usually manipulate