We use cookies to provide you with a better experience. If you continue to use this site, we'll assume you're happy with this. Alternatively, click here to find out how to manage these cookies

hide cookie message

How to save search URLs in Safari 6

As youve probably heard, Safari 6 has a new combined URL and search field. If you type a search term into that field then press Return, youll get a Google page with search results. But, oddly, the URL for that Google search wont appear in that search-address field; instead, the search term itself will remain there. This can be frustrating, because sometimes you want the URL for the Google results page, either to save or to share.

Macworld Senior Editor Dan Frakes recently tweeted a quick AppleScript that enables you to get that Google search URL. Many Tricks developer Peter Maurer suggested an improvement to the script, then Jordan Kay posted a final, one-line version of it. The sum of their collaboration: Run the following script and it will save the URL for the frontmost Safari tab to the clipboard; from there you can paste it wherever you want.

tell application "Safari" to set the clipboard to URL of current tab of window 1 as string

(To use the script, open AppleScript Editor, paste the above text in a new window, then save it as an application. You can then double-click that application to run it.)

Frakes later pointed out a second way to save Google searches: You can drag the favicon in the Address Bar to a Finder window after youve run a search. (For a search, the favicon is the magnifying glass icon at the left of the search field.) You can then double-click the resulting file to run the search again, or you can press the Spacebar to Quick Look it and see a live search with clickable links. Alternatively, you can drag the favicon to the body of an email message or into a text field or document to immediately paste the link.

Finally, you can save a search-results page as a bookmark in Safari: Run a search, then choose Bookmarks -> Add Bookmark, or press Command-D. If you save it to the Bookmarks Bar, you can right-click on the bookmark and choose Copy to get the search URL.

IDG UK Sites

Best Black Friday 2014 tech deals UK: Latest bargains on phones, tablets, laptops and more this...

IDG UK Sites

Tech trends 2015: 3D printing grows up

IDG UK Sites

25 iOS apps turn (Red) for World AIDS Day campaign

IDG UK Sites

Black Friday 2014 UK: Apple deals, Amazon deals & other Black Friday tech offers