Recherche…


Introduction

AppleScript est capable de récupérer l'URL de l'onglet en cours d'un navigateur.

URL de retour de l'onglet

Safari

Pour renvoyer l'URL de l'onglet actuel dans Safari, utilisez l' URL of current tab :

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

Google Chrome

Pour renvoyer l'URL de l'onglet actuel dans Google Chrome, utilisez l' 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
Sous licence CC BY-SA 3.0
Non affilié à Stack Overflow