This is a slightly updated version of this Apple "Ask Different"/Stack Overflow answer in a convenient place where I can find it and keep it up to date.
Created
November 17, 2025 20:36
-
-
Save purp/60b49efa308db9fd1a8fd6d8c5007c57 to your computer and use it in GitHub Desktop.
"Open In Chrome" Quick Action for MacOS Automator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on run {input} | |
| set theURL to input | |
| if {theURL does not start with "http"} then | |
| set theURL to "https://" & theURL | |
| end if | |
| tell application "Google Chrome" | |
| if not (exists first window) then | |
| make new window | |
| set URL of last tab of first window to theURL | |
| else | |
| tell first window | |
| set newTab to make new tab with properties {URL:theURL} | |
| end tell | |
| end if | |
| activate | |
| end tell | |
| end run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment