Zoeken…


Invoering

AppleScript kan de URL van het huidige tabblad van een browser ophalen.

Retournerende tabblad-URL's

Safari

Om de URL van het huidige tabblad in Safari, gebruik terug URL of current tab :

tell application "Safari"
    return URL of current tab of window 1
end tell

Google Chrome

Als u de URL van het huidige tabblad in Google Chrome wilt retourneren, gebruikt u de URL of active tab :

tell application "Google Chrome"
    return URL of active tab of window 1
end tell


Modified text is an extract of the original Stack Overflow Documentation
Licentie onder CC BY-SA 3.0
Niet aangesloten bij Stack Overflow