[ Web Proxy ]
URL:
Viewing: https://wiki.python.org/moin/../python/platforms/MacPython/../MacPython/AppleScript/../Safari.html [Back]  [Original]

MacPython / Safari - Python Wiki
Python Wiki
psf/wiki 0 0
Copy page

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()
Back to top

Web Proxy Viewer  |  New URL  |  Original Page