DAGDA SEARCH | Back to results | Support

MacPython / Safari - Python Wiki

Source: https://wiki.python.org/python/platforms/MacPython/Safari.html

  1. Python Wiki /
  2. Python Wiki /
  3. Platform-Specific /
  4. MacPython /
  5. MacPython / Safari
View as Markdown

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()
PreviousMacPython / Robo Fab Next MacPython / Scr IDE