Skip to content

Instantly share code, notes, and snippets.

@Teraflopst
Created March 11, 2019 10:02
Show Gist options
  • Save Teraflopst/9e66f54fb21c05530fbf132bbf59bcd6 to your computer and use it in GitHub Desktop.
Save Teraflopst/9e66f54fb21c05530fbf132bbf59bcd6 to your computer and use it in GitHub Desktop.
macOS 以 Chrome App 模式打开当前网页
tell application "Google Chrome"
set weburl to the URL of the active tab of the front window
end tell
set appurl to "/Applications/Google\\ Chrome.app/Contents/MacOS/Google\\ Chrome --app=" & weburl
do shell script appurl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment