MacPython/Safari¶
Legacy Wiki Page
This page was migrated from the old MoinMoin-based wiki. Information may be outdated or no longer applicable. For current documentation, see python.org.
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()