Jump to content

macdoe

Member
  • Content Count

    1
  • Joined

  • Last visited

  1. We could use an AppleScript like this for Chrome. I modified this simple script: https://github.com/mobjack/MacChromeCalendarFocus Still having a little trouble focusing the correct window. If anyone can help on that please let me know what's missing: tell application "Google Chrome" repeat with w in windows set i to 1 repeat with t in tabs of w if URL of t starts with "https://inbox.google.com/" then set active tab index of w to i set index of w to 1 tell application "Google Chrome" to activate tell application "System Events" keystroke "c" end tell return end if set i to i + 1 end repeat end repeat open location "https://inbox.google.com/" tell application "System Events" keystroke "c" end tell end tell tell application "Google Chrome" to activate
×
×
  • Create New...