My guess is that it's not finding a window with that title. Try using this macro to see what windows are available: Front Window Analysis Tool Using AppleScript System Events (get window elements).
1 Like