Buscar..


Introducción

AppleScript puede recuperar la URL de la pestaña actual de un navegador.

Regresando URLs de pestañas

Safari

Para devolver la URL de la pestaña actual en Safari, use la URL of current tab :

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

Google Chrome

Para devolver la URL de la pestaña actual en Google Chrome, use la 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
Licenciado bajo CC BY-SA 3.0
No afiliado a Stack Overflow