Your search query "linkto%3A%22MacPython%2FSafari%22" didn't return any results. Please change some terms and refer to HelpOnSearching for more information.

Clear message

You can get the current URL of the current window from Safari with the following appscript:

import appscript
print appscript.app("Safari").windows.first.current_tab.URL()

Unable to edit the page? See the FrontPage for instructions.