On all the browsers on my Mac, if I want to go to a www.some_website.com address, I just type some_website into the location field. Recently I discovered that if I want to go to a sub-section of a website, I can type some_website/subsection. As far as I can tell, this doesn't work in Internet Explorer for Windows.
[robg adds: I couldn't get this to work in Firefox (184.108.40.206), but it did work in Camino, Safari, OmniWeb and Opera.]
Ever been browsing through a link-heavy paragraph of text in Safari, and had a tooltip appear when your cursor innocently hovered over a link? The problem is that if you then move your mouse, the tooltip will "follow" the cursor. Tooltips for other links will then appear instantly, rather than after a delay, as is usual.
One solution is to move your mouse out of the text area, but a quicker fix is to tap Enter on the numeric keypad, which you can do with your mouse-hand thumb. The tooltip will disappear and won't return until the mouse is moved to another link.
[robg adds: At first, I wasn't seeing the tooltips in Safari 2. Then I remembered I had put them on permanent vacation with this hint. Tooltips appear to be disabled by default in Safari 3, though the referenced hint (with 1 at the end instead of 0) will enable them.]
I search lots of different sites regularly, and I knew there had to be a way to customize the search field of Camino so that it would do more that just Google and Google Images. If you look in ~/Library » Application Support » Camino, there is a file called SearchURLList.plist. You can edit this file in a text editor and add your own search engines. Always save a backup of this file first, of course.
For example, I added the following two lines to search the PHP Function Reference on php.net:
<key>PHP Function Reference</key>
I have also set it up to use an online spanish dictionary (Tomisimo) and Wikipedia, amongst others. I am using Camino 1.5 and OS X 10.4.10.
[robg adds: I tested this on Camino 1.5, and it worked great. To figure out the URL you need to use, run a search for something simple (ie test) on your favorite site. On the results page, copy the URL into a text editor (for easier manipulation). Replace your search term (test) with %s, and then copy the whole URL and enter it as the string. If you have Xcode installed, the plist can be edited in Property List Editor. If you'd like another GUI editing solution, you might try PlistEdit Pro; otherwise, your favorite pure text editor will work just fine.]
Here's a weird one. In Safari Version 3.0.2 (522.12), if I click the blue focus ring around the address field, Safari reloads the page. I'm not sure if this is a bug or a feature.
[robg adds: I confirmed this, and also verified that the same doesn't happen in Safari 2. My guess is that it's a bug, but for now, consider it one more way to reload a page (though much tougher than pressing Command-R).]
I started using Safari again when I got my iPhone, and I've been looking for a way to sync my bookmarks between machines without using a .Mac account. This technique assumes one machine will always be overriding the other. It turns out it's very easy to do using Automator and Transmit. You'll also need access to an FTP server, so you can store your bookmark file.
On the master machine:
In Automator create a new workflow where step one is Get Specified Finder Items from the Finder library, and select the bookmarks.plist file which can be found in ~/Library/Safari. Then add the Upload Files action from the Transmit library. Enter the FTP server, upload path, and select replace. Save the workflow as an application.
On the slave machine:
In Automator, create a new workflow where step one is Download Files from the Transmit library. Set the FTP server (in Transmit, you should create a favorite that automatically logs in and changes the local path to ~/Library/Safari. Save this workflow as an application.
Now when you run the upload application, it will upload your Safari bookmarks to the FTP server. When you run the download application on the other machine, it will download the bookmarks.plist file from the FTP server and replace your local copy. For safety's sake, I have the download application set to ask before it replaces my local bookmarks file.
This is a very basic tip, but one i have been using often since the release of the Safari 3 public beta.
Instead of navigating to System Prefrences, or control-clicking on the Desktop to bring up the desktop image menu, simply drag the image you want to use as a desktop image onto the Safari 3 icon. When the image opens, control-click on it and select Use Image as Desktop Picture from the pop-up menu. I find Safari a lot quicker to load, and I find that this makes for a very quick way to change your desktop.
I like having machine spefiic bookmarks on each machine I work at (home, work, etc.), but also like having a common set available to each machine. I store my shared bookmarks in Google Bookmarks. I wrote an Automator workflow to download my Google Bookmarks and add them to the Safari bookmarks bar (but leave alone the bookmarks I already have there.) Safari automatically notices when its bookmarks file has been edited and automatically updates itself.
You must be logged into Google services (Gmail, etc.) in Safari to run the workflow.
The bookmarks are in submenus by label.
The script assumes that a ':' in a label is a hierarchy separator, so Art:Photography would put a Photography menu inside an Art menu inside the Gmarks menu.
If you label a Google Bookmark with multiple labels, it will show up in all the corresponding submenus.
In addition to making a new Bookmarks file, the script makes a Bookmarks_no_google.plist file, so you can always go back to the bookmarks you had before running it.
Tested and working in both Safari 2 and 3.02 beta.
You may run into trouble if you move the Gmarks menu to other places in the bookmarks bar.
[robg adds: I created a .zip version (8KB) of the workflow on the macosxhints server, in case the original ever vanishes (but that should be your first choice, in case the code ever changes. I haven't tested this, but you can open the workflow and look at the code yourself -- it includes a perl script that does most of the hard work.]
I ran into this recently, when I needed to save a URL as a text clipping, not as a webloc file. (The situation is too bizarre to get into here, but suffice it to say it involved two user accounts on the same machine that needed to share data, and Lotus Notes.)
I knew that dragging the favicon from the URL bar to the Desktop results in a webloc. This is helpful, and expected. The favicon is the URL proxy, and should act like the object it represents. To get a *text* clipping, I figured I'd drag the *text* instead of the favicon. This should result in a text clipping, right? Nope. The Finder recognizes the http: prefix, and 'helpfully' converts it to a webloc file for you. Not what I wanted, or expected.
Mildly annoyed, I decided to break its helpfulness by prepending a space. Voila. Drag the resulting text from the URL box in Safari, and you get a text clipping you can drop anywhere.
In Safari 3, Apple added a feature to warn you when you close multiple tabs. This is a good feature, and can be turned off if not wanted. But I like to be able to have it on as a safety net, but not be annoyed by it when I know I want to quickly close Safari. So, to bypass the warning just once, hold down the Option key when closing a browser window with multiple tabs open.
Warning: when multiple windows are open, this also closes those other windows without a warning.
In Safari, if you want to copy some text and images from a web page, but the image (even though highlighted) won't transfer if you drag-and-drop the selection into another application. So after you highlight the text and image you'd like to keep, copy it with Command-C, and paste it (Command-V) into an RTF TextEdit document. The picture, text, and any embedded links will all be there.
I've loved clippings since drag-and-drop first appeared (wavy flashback lines -- "wow, os7 is awesome! no more font/da mover!" -- shaking off cloudy haze), and have tons of them, filled with interesting little tidbits. And yes, I also greatly utilize File » Print to PDF, but with all of the extra stuff on web pages, clips are still the way to go for grabbing a little piece of info. It's not exactly a clipping, but almost as good with some advantages. I think this works with older versions of Safari, and you can paste into Stickies (or any other application that supports RTF).