Last active
August 20, 2022 13:57
-
-
Save jacobsalmela/ad72a786bc6b2607aa56 to your computer and use it in GitHub Desktop.
Bookmark the current site
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
# Open real test site | |
killall Safari > /dev/null | |
osascript -e 'tell application "Safari" | |
activate | |
set the URL of the front document to "http://selfregister.testnav.com" | |
end tell' | |
sleep 10 | |
# Bookmark site | |
osascript -e 'tell application "System Events" | |
tell process "Safari" | |
activate | |
set frontmost to true | |
keystroke "d" using command down | |
delay 1.0 | |
keystroke return | |
end tell | |
end tell' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment