Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Use AppleScript to select specific tabs in Safari 3 Web Browsers
One thing that really bugs me about Safari is the inability to have a keyboard shortcut for each tab. In Firefox, you can use Command-1 to get the first tab, Command-2 to get the second tab, and so on. (You can cycle between all open tabs with Command-{ and Command-}, but you can't just to a specific tab.) With the release of Safari 3, there is now AppleScript support for selecting tabs. To select tab 1 you can do this:
tell front window of app "Safari" to set current tab to tab 1
I wrote nine similar scripts for tabs one through nine, and a script for activating the last tab. These go in ~/Library » Scripts » Applications » Safari. Then I assigned each script to a trigger in Quicksilver that is only available when Safari is active. If you have the scripts menu active, you should be able to assign keyboard shortcuts to each file. However, these shortcuts don't work for me within Safari for some reason. Perhaps someone else can figure this one out.
read more (158 words)   Post a comment  •  Comments (2)  
  • Currently 2.50 / 5
  You rated: 4 / 5 (8 votes cast)
[16,984 views]  View Printable Version
Quick browsing to a sub-section of a web site Web Browsers
On all the browsers on my Mac, if I want to go to a 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 (, but it did work in Camino, Safari, OmniWeb and Opera.]
  Post a comment  •  Comments (10)  
  • Currently 1.75 / 5
  You rated: 1 / 5 (8 votes cast)
[6,178 views]  View Printable Version
Make Safari's hyperlink tooltips temporarily vanish Web Browsers
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.]
  Post a comment  •  Comments (4)  
  • Currently 1.40 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (5 votes cast)
[7,631 views]  View Printable Version
Add custom search engines to Camino Web Browsers
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
<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.]
  Post a comment  •  Comments (5)  
  • Currently 2.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (6 votes cast)
[9,821 views]  View Printable Version
A non-standard way to reload a page in Safari 3 Web Browsers
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).]
  Post a comment  •  Comments (7)  
  • Currently 1.83 / 5
  You rated: 2 / 5 (6 votes cast)
[7,732 views]  View Printable Version
Sync Safari Bookmarks without .Mac Web Browsers
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.
  Post a comment  •  Comments (4)  
  • Currently 2.38 / 5
  You rated: 3 / 5 (8 votes cast)
[32,598 views]  View Printable Version
10.4: Quickly set desktop image using Safari 3 Web Browsers
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.
  Post a comment  •  Comments (9)  
  • Currently 1.88 / 5
  You rated: 3 / 5 (8 votes cast)
[8,509 views]  View Printable Version
Sync some Google Bookmarks with Safari Web Browsers
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.
  • The script includes adding a label for when it was last run (inside the menu), and an item that runs JavaScript to add the current page to your Google Bookmarks.
  • 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.
It's available as a disk image [16KB download] on my site.

[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.]
  Post a comment  •  Comments (5)  
  • Currently 2.27 / 5
  You rated: 3 / 5 (11 votes cast)
[53,321 views]  View Printable Version
Save Safari URLs as text clippings not weblocs Web Browsers
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.
  Post a comment  •  Comments (6)  
  • Currently 1.43 / 5
  You rated: 3 / 5 (7 votes cast)
[7,762 views]  View Printable Version
Temporarily override Safari 3's 'close all tabs' warning Web Browsers
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.
  Post a comment  •  Comments (5)  
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (4 votes cast)
[7,088 views]  View Printable Version