Skip to content

Instantly share code, notes, and snippets.

@purp
Created November 17, 2025 20:36
Show Gist options
  • Select an option

  • Save purp/60b49efa308db9fd1a8fd6d8c5007c57 to your computer and use it in GitHub Desktop.

Select an option

Save purp/60b49efa308db9fd1a8fd6d8c5007c57 to your computer and use it in GitHub Desktop.
"Open In Chrome" Quick Action for MacOS Automator
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