![]() ![]()
Just click on the Scripts icon in the menu bar and select it as shown here:īut what if you want to use a keyboard shortcut instead of the mouse? For that you will need FastScripts, which gives you everything the standard 'Scripts' menu offers, plus the ability to assign keyboard shortcuts. Once the Script menu is enabled, you will see 'Open in Google Chrome' whenever you are in Safari. To use that Scripts menu, launch the "AppleScript Editor.app" found in /Applications/Utilities/ and then go to Preferences and enable the option 'Show Script menu in menu bar' as shown here: #Fastscripts application scripts folder how to#I prefer FastScripts, but will explain how to use the standard OS X option first. Option two is to use a program called FastScripts. Option one is to use the "Scripts" menu extra from OS X. Once 'Open in Google Chrome' is installed, there are two ways to use it from Safari. ![]() Using 'Open in Google Chrome.scpt' From Safari Once you are in the ~/Library/Scripts/Applications/Safari/ folder, simply drag the 'Open in Google Chrome.scpt' file to it from the other Finder window. (Aside: If it says "The folder can't be found" try going to ~/Library/Scripts/Applications/ instead, and then just create the 'Safari' folder using File » New Folder from the menu bar.) Once you have done that, a window will appear prompting you to enter the path that you want to go to. The easiest way to do this is to go to the Finder and then choose the "Go to Folder." option from the Go menu, as shown here: If that folder does not exist, you will need to create it. To use 'Open in Google Chrome.scpt' in Safari, it needs to be installed to ~/Library/Scripts/Applications/Safari/ (where ~ is the path to your Home directory). Now you'll want to open a new Finder window so you can navigate to where that file needs to be installed, so choose File » New Finder Window and then move on to the next section. #Fastscripts application scripts folder archive#Find that file in your Downloads folder, double-click it, and Archive Utility will open it and show you a folder with a file named 'Open in Google Chrome.scpt' in it. Note that the download filename will be something ridiculously long which starts with 'gist4750810' (don't ask me why, it's a Github 'thing'). ![]() To use this AppleScript, you will need to download it from Github. ![]() This AppleScript will launch Google Chrome if it is not already running, and will not overwrite any existing tabs in Google Chrome. (Note: this article was updated on 2013–02–10 to include an updated and improved version of the AppleScript, as well as expanded instructions on how to use it.) Here is the AppleScript that I am currently using: Using AppleScript, you can send the current URL from Safari to Google Chrome. I haven't been able to find a way to revert to the old behavior, so I started looking for another way. I asked a few folks, and it appears this changed in Safari 5.0.4. This means that a keyboard shortcut would have to include the version number, which means it would break whenever the browser is updated. Notice that the browser listings now include version numbers. You can disable notifications at any time in your settings menu. Here's what the menu looks like for me now: That was mildly annoying, but things recently took a turn for the worse. After opening the menu, the keyboard shortcut would work until I quit Safari again. Every time I launched Safari, the keyboard shortcut would not work until I had opened that menu manually using the mouse. Unfortunately, this failed for me quite often. John suggested using System Preferences to create a keyboard shortcut for "Google Chrome" or "Google Chrome.app" depending on which one you saw in the menu. To make this easier, John suggested turning on the "Develop menu" in Safari's "Advanced" preferences, which includes a sub-menu to "Open Page With" and a sub-sub-menu that shows all of your installed browsers. #Fastscripts application scripts folder mac os#I've been using John Gruber's suggestions from Going Flash-Free on Mac OS X, and How to Cheat When You Need It to avoid installing Adobe Flash by using Google Chrome (which includes its own version of Flash) whenever I run into a page that has Flash I want to see. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |