Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

When I enter www.google.com in Safari's address bar and enter a search term in Google's search box I can later copy the URL of that particular Google search from the address bar.

However when I search on Google by directly entering the search term in Safari's address bar, I can never copy the Google search URL from the address bar because the address bar still contains the search terms rather than the Google URL.

How can I copy the URL for a Google search in this instance?

share|improve this question
add comment

1 Answer

up vote 6 down vote accepted

You can drag the magnifying glass icon on the location bar to a plain text view:

Or run prompt("",location.href) in the JavaScript console or run tell application "Safari" to URL of document 1 in AppleScript Editor.

share|improve this answer
    
Dragging is great and works. Thank you! –  LearnCocos2D May 1 '13 at 11:00
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.