Forked from vitorgalvao/Get Title and URL.applescript
Created
November 6, 2015 07:48
-
-
Save alexzaporozhets/4ae7e859c6468ebc7e37 to your computer and use it in GitHub Desktop.
Applescript to get frontmost tab’s url and title of various browsers.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Browser | |
| # applescript to get frontmost tab's url | |
| # applescript to get frontmost tab's page title | |
| # Google Chrome | |
| tell application "Google Chrome" to return URL of active tab of front window | |
| tell application "Google Chrome" to return title of active tab of front window | |
| # Google Chrome Canary | |
| tell application "Google Chrome Canary" to return URL of active tab of front window | |
| tell application "Google Chrome Canary" to return title of active tab of front window | |
| # Chromium | |
| tell application "Chromium" to return URL of active tab of front window | |
| tell application "Chromium" to return title of active tab of front window | |
| # Safari | |
| tell application "Safari" to return URL of front document | |
| tell application "Safari" to return name of front document | |
| # Webkit | |
| tell application "Webkit" to return URL of front document | |
| tell application "Webkit" to return name of front document | |
| # Opera | |
| tell application "Opera" to return URL of front document | |
| tell application "Opera" to return name of front document |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment