Skip to content

Instantly share code, notes, and snippets.

@Dudemullet
Last active May 13, 2019 19:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dudemullet/e79551cfbeecc43a0fc51123fee895c4 to your computer and use it in GitHub Desktop.
Save Dudemullet/e79551cfbeecc43a0fc51123fee895c4 to your computer and use it in GitHub Desktop.
Opens the active tab in the front most Google Chrome window in Safari.
tell application "Google Chrome"
set current_tab to active tab in the front window
set the_url to the URL of current_tab
tell application "Safari" to open location the_url
tell current_tab to close
end tell
@Dudemullet
Copy link
Author

If you would like for this script to not close the tab after opening it. Delete or comment Line 5 tell current_tab to close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment