[
  {
    "path": ".gitignore",
    "content": "\n.DS_Store\n"
  },
  {
    "path": "ChromeHelper.app/Contents/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleAllowMixedLocalizations</key>\n\t<true/>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>English</string>\n\t<key>CFBundleExecutable</key>\n\t<string>applet</string>\n\t<key>CFBundleIconFile</key>\n\t<string>applet</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>com.lukehagan.openinchrome</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundleName</key>\n\t<string>ChromeHelper</string>\n\t<key>CFBundlePackageType</key>\n\t<string>APPL</string>\n\t<key>CFBundleSignature</key>\n\t<string>aplt</string>\n\t<key>CFBundleURLTypes</key>\n\t<array>\n\t\t<dict>\n\t\t\t<key>CFBundleURLName</key>\n\t\t\t<string>chromehelper</string>\n\t\t\t<key>CFBundleURLSchemes</key>\n\t\t\t<array>\n\t\t\t\t<string>chromehelper</string>\n\t\t\t</array>\n\t\t</dict>\n\t</array>\n\t<key>LSMinimumSystemVersionByArchitecture</key>\n\t<dict>\n\t\t<key>x86_64</key>\n\t\t<string>10.6</string>\n\t</dict>\n\t<key>LSRequiresCarbon</key>\n\t<true/>\n\t<key>WindowState</key>\n\t<dict>\n\t\t<key>dividerCollapsed</key>\n\t\t<false/>\n\t\t<key>eventLogLevel</key>\n\t\t<integer>-1</integer>\n\t\t<key>name</key>\n\t\t<string>ScriptWindowState</string>\n\t\t<key>positionOfDivider</key>\n\t\t<real>333</real>\n\t\t<key>savedFrame</key>\n\t\t<string>45 103 602 597 0 0 1366 746 </string>\n\t\t<key>selectedTabView</key>\n\t\t<string>event log</string>\n\t</dict>\n</dict>\n</plist>\n"
  },
  {
    "path": "ChromeHelper.app/Contents/PkgInfo",
    "content": "APPLaplt"
  },
  {
    "path": "ChromeHelper.app/Contents/Resources/description.rtfd/TXT.rtf",
    "content": "{\\rtf1\\ansi\\ansicpg1252\\cocoartf1265\\cocoasubrtf200\n{\\fonttbl}\n{\\colortbl;\\red255\\green255\\blue255;}\n}"
  },
  {
    "path": "ChromeHelper.app/Contents/_CodeSignature/CodeResources",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>files</key>\n\t<dict>\n\t\t<key>Resources/Scripts/main.scpt</key>\n\t\t<data>\n\t\tIGrsA05+qj5LSutOSqq6F7OqPqg=\n\t\t</data>\n\t\t<key>Resources/applet.icns</key>\n\t\t<data>\n\t\tsINd6lbiqHD5dL8c6u79cFvVXhw=\n\t\t</data>\n\t\t<key>Resources/applet.rsrc</key>\n\t\t<data>\n\t\tXtTEOXd8ccgxy3Gk09El8IOUUSY=\n\t\t</data>\n\t\t<key>Resources/description.rtfd/TXT.rtf</key>\n\t\t<data>\n\t\tK2wQWGeAmNawg1ZDnKNKyrxN1Bk=\n\t\t</data>\n\t</dict>\n\t<key>files2</key>\n\t<dict>\n\t\t<key>Resources/Scripts/main.scpt</key>\n\t\t<data>\n\t\tIGrsA05+qj5LSutOSqq6F7OqPqg=\n\t\t</data>\n\t\t<key>Resources/applet.icns</key>\n\t\t<data>\n\t\tsINd6lbiqHD5dL8c6u79cFvVXhw=\n\t\t</data>\n\t\t<key>Resources/applet.rsrc</key>\n\t\t<data>\n\t\tXtTEOXd8ccgxy3Gk09El8IOUUSY=\n\t\t</data>\n\t\t<key>Resources/description.rtfd/TXT.rtf</key>\n\t\t<data>\n\t\tK2wQWGeAmNawg1ZDnKNKyrxN1Bk=\n\t\t</data>\n\t</dict>\n\t<key>rules</key>\n\t<dict>\n\t\t<key>^Resources/</key>\n\t\t<true/>\n\t\t<key>^Resources/.*\\.lproj/</key>\n\t\t<dict>\n\t\t\t<key>optional</key>\n\t\t\t<true/>\n\t\t\t<key>weight</key>\n\t\t\t<real>1000</real>\n\t\t</dict>\n\t\t<key>^Resources/.*\\.lproj/locversion.plist$</key>\n\t\t<dict>\n\t\t\t<key>omit</key>\n\t\t\t<true/>\n\t\t\t<key>weight</key>\n\t\t\t<real>1100</real>\n\t\t</dict>\n\t\t<key>^version.plist$</key>\n\t\t<true/>\n\t</dict>\n\t<key>rules2</key>\n\t<dict>\n\t\t<key>.*\\.dSYM($|/)</key>\n\t\t<dict>\n\t\t\t<key>weight</key>\n\t\t\t<real>11</real>\n\t\t</dict>\n\t\t<key>^(.*/)?\\.DS_Store$</key>\n\t\t<dict>\n\t\t\t<key>omit</key>\n\t\t\t<true/>\n\t\t\t<key>weight</key>\n\t\t\t<real>2000</real>\n\t\t</dict>\n\t\t<key>^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/</key>\n\t\t<dict>\n\t\t\t<key>nested</key>\n\t\t\t<true/>\n\t\t\t<key>weight</key>\n\t\t\t<real>10</real>\n\t\t</dict>\n\t\t<key>^.*</key>\n\t\t<true/>\n\t\t<key>^Info\\.plist$</key>\n\t\t<dict>\n\t\t\t<key>omit</key>\n\t\t\t<true/>\n\t\t\t<key>weight</key>\n\t\t\t<real>20</real>\n\t\t</dict>\n\t\t<key>^PkgInfo$</key>\n\t\t<dict>\n\t\t\t<key>omit</key>\n\t\t\t<true/>\n\t\t\t<key>weight</key>\n\t\t\t<real>20</real>\n\t\t</dict>\n\t\t<key>^Resources/</key>\n\t\t<dict>\n\t\t\t<key>weight</key>\n\t\t\t<real>20</real>\n\t\t</dict>\n\t\t<key>^Resources/.*\\.lproj/</key>\n\t\t<dict>\n\t\t\t<key>optional</key>\n\t\t\t<true/>\n\t\t\t<key>weight</key>\n\t\t\t<real>1000</real>\n\t\t</dict>\n\t\t<key>^Resources/.*\\.lproj/locversion.plist$</key>\n\t\t<dict>\n\t\t\t<key>omit</key>\n\t\t\t<true/>\n\t\t\t<key>weight</key>\n\t\t\t<real>1100</real>\n\t\t</dict>\n\t\t<key>^[^/]+$</key>\n\t\t<dict>\n\t\t\t<key>nested</key>\n\t\t\t<true/>\n\t\t\t<key>weight</key>\n\t\t\t<real>10</real>\n\t\t</dict>\n\t\t<key>^embedded\\.provisionprofile$</key>\n\t\t<dict>\n\t\t\t<key>weight</key>\n\t\t\t<real>20</real>\n\t\t</dict>\n\t\t<key>^version\\.plist$</key>\n\t\t<dict>\n\t\t\t<key>weight</key>\n\t\t\t<real>20</real>\n\t\t</dict>\n\t</dict>\n</dict>\n</plist>\n"
  },
  {
    "path": "ChromeHelper.applescript",
    "content": "(*\nOpen in Chrome (Helper app)\nby Luke Hagan <lukehagan.com>\ncreated 2012-01-22\nreleased under the MIT license (see LICENSE.md for details)\n\nbased on Use AppleScript to open current Safari URL in Google Chrome by TJ Luoma\nhttp://www.tuaw.com/2011/03/14/use-applescript-to-open-current-safari-url-in-google-chrome/\n*)\n\non open location theURL\n\t-- split URL string to remove the chromehelper:// prefix\n\tset theURL to rightString(theURL, \"://\")\n\t\n\ttell application id \"com.google.Chrome\"\n\t\t-- open Chrome if it's not open, create a new window if none exists, bring into focus\n\t\tactivate\n\t\t\n\t\t-- delay to make sure window is open before we start doing anything\n\t\tdelay 0.5\n\t\t\n\t\t-- if Chrome's active tab is non-blank, create a new tab\n\t\t-- if a blank tab is active, just use that\n\t\t-- otherwise, make a new window\n\t\t-- based on a script by scott.c.jordan\n\t\t-- http://www.tuaw.com/2011/03/14/use-applescript-to-open-current-safari-url-in-google-chrome/#aolc=A0yOBA\n\t\tif (count of (every window where visible is true)) is greater than 0 then\n\t\t\tif URL of active tab of front window is not \"chrome://newtab/\" then\n\t\t\t\ttell front window\n\t\t\t\t\tmake new tab\n\t\t\t\tend tell\n\t\t\tend if\n\t\telse\n\t\t\tmake new window\n\t\tend if\n\t\t\n\t\tset URL of active tab of front window to \"http://\" & theURL\n\t\tactivate\n\tend tell\nend open location\n\n-- split theString into two parts based on a delimiter and return the rightmost part\n-- note: only works properly if the delimiter appears only once in the string\non rightString(theString, theDelimiter)\n\t-- save current delimiters for later\n\tset currentDelimiters to AppleScript's text item delimiters\n\t\n\t-- set new delimiter\n\tset AppleScript's text item delimiters to theDelimiter\n\t\n\t-- create an array of items\n\tset array to every text item of theString\n\t\n\t-- return the rightmost part of the string\n\treturn item 2 of array\nend rightString\n"
  },
  {
    "path": "LICENSE.md",
    "content": "The MIT License\n===============\n\nCopyright (c) 2012 Luke Hagan <lukehagan.com>.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"
  },
  {
    "path": "OpenInChrome.safariextension/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>Author</key>\n\t<string>Luke Hagan</string>\n\t<key>Builder Version</key>\n\t<string>9537.75.14</string>\n\t<key>CFBundleDisplayName</key>\n\t<string>Open in Chrome</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>com.lukehagan.openinchrome</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>1.1</string>\n\t<key>CFBundleVersion</key>\n\t<string>1</string>\n\t<key>Chrome</key>\n\t<dict>\n\t\t<key>Global Page</key>\n\t\t<string>global.html</string>\n\t\t<key>Toolbar Items</key>\n\t\t<array>\n\t\t\t<dict>\n\t\t\t\t<key>Identifier</key>\n\t\t\t\t<string>openinchrome</string>\n\t\t\t\t<key>Image</key>\n\t\t\t\t<string>arrow.png</string>\n\t\t\t\t<key>Label</key>\n\t\t\t\t<string>Open in Chrome</string>\n\t\t\t\t<key>Tool Tip</key>\n\t\t\t\t<string>Open in Chrome</string>\n\t\t\t</dict>\n\t\t</array>\n\t</dict>\n\t<key>Content</key>\n\t<dict>\n\t\t<key>Scripts</key>\n\t\t<dict/>\n\t</dict>\n\t<key>Description</key>\n\t<string>Opens current web address in Chrome</string>\n\t<key>ExtensionInfoDictionaryVersion</key>\n\t<string>1.0</string>\n\t<key>Permissions</key>\n\t<dict>\n\t\t<key>Website Access</key>\n\t\t<dict>\n\t\t\t<key>Include Secure Pages</key>\n\t\t\t<true/>\n\t\t\t<key>Level</key>\n\t\t\t<string>All</string>\n\t\t</dict>\n\t</dict>\n</dict>\n</plist>\n"
  },
  {
    "path": "OpenInChrome.safariextension/global.html",
    "content": "<!--\nOpen in Chrome Safari Extension\nby Luke Hagan <lukehagan.com>\ncreated 2012-01-22\nreleased under the MIT license (see LICENSE.md for details)\n-->\n\n<!DOCTYPE HTML>\n<html>\n\t<head>\n\t   <title>global page</title>\n\t   <script type=\"text/javascript\">\n \n\t\tfunction performCommand(event) {\n\t\t    if (event.command === \"openinchrome\") {\n\t\t        var currentURL = event.target.browserWindow.activeTab.url;\n\t\t        if (currentURL) {\n\t\t            event.target.browserWindow.activeTab.url = \"chromehelper://\" + currentURL.split(\"://\")[1];\n\t\t\t\t}\n\t\t    }\n\t\t}\n \n\t\tfunction validateCommand(event) {\n\t\t    if (event.command === \"reload-page\") {\n\t\t        // Disable the button if there is no URL loaded in the tab.\n\t\t        event.target.disabled = !event.target.browserWindow.activeTab.url;\n\t\t    }\n\t\t}\n \n\t\t// register with application:\n\t\tsafari.application.addEventListener(\"command\", performCommand, false);\n\t\tsafari.application.addEventListener(\"validate\", validateCommand, false);\n     \n\t   </script>\n\t</head>\n\t<body>\n\t</body>\n</html>\n"
  },
  {
    "path": "README.md",
    "content": "**Note**: this project is no longer maintained and probably doesn't work in the latest version of macOS/Safari.\n\n# Open in Chrome\n\nSafari extension that opens the current page in Chrome. See [this post](http://daringfireball.net/2010/11/flash_free_and_cheating_with_google_chrome) by John Gruber for the \"why\" on this one.\n\nNote: the extension depends on an AppleScript application to communicate with Chrome, so it will not work on Windows.\n\n## Usage\n\n1. [Download](https://github.com/lhagan/Open-in-Chrome/zipball/master) and extract the ZIP file\n2. Install the extension (double-click OpenInChrome.safariextz)\n3. Put the ChromeHelper app anywhere you want and double-click it to register with Mac OS X (nothing will happen yet)\n4. Click the Open in Chrome arrow button in Safari to open the current page in Chrome\n\n## Version History\n\n**2014-06-29**: Code sign ChromeHelper app (for Gatekeeper, issue #3).\n\n**2014-06-08**: Fix an issue causing Chrome to open in Parallels instead of the native version (issue #2).\n\n**2014-01-07**: Add retina toolbar icon.\n\n**2013-07-22**: Fix an issue that caused OS X to report that the ChromeHelper application is damaged.\n\n**2012-12-12**: Bug fix - make sure that Chrome always brings itself to the front (instead of hiding behind Safari).\n\n**2012-01-23**: Initial release.\n"
  }
]