Last active
May 11, 2021 10:19
-
-
Save mitcdh/700d34b8729ad46a20509dd52141765c to your computer and use it in GitHub Desktop.
Applescripts for new blank tabs with address bar focused
This file contains 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
tell application "Google Chrome" | |
tell front window | |
activate | |
if URL of active tab is not equal to "chrome://newtab/" then | |
make new tab at end of tabs | |
end if | |
end tell | |
end tell |
This file contains 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
tell application "Safari" | |
tell front window | |
activate | |
if URL of current tab is not "favorites://" then | |
set current tab to (make new tab with properties {URL:"favorites://"}) | |
end if | |
end tell | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment