Created
November 25, 2023 00:37
-
-
Save iloveitaly/01abaff23bdde0218eb68e2977ea49c5 to your computer and use it in GitHub Desktop.
Logout of Twitter with an Applescript. Fight distraction.
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" | |
activate | |
open location "https://twitter.com/logout" | |
end tell | |
tell application "System Events" | |
tell process "Safari" | |
delay 0.5 | |
click button "Log out" of group 1 of group 1 of group 1 of UI element 1 of scroll area 1 of group 1 of group 1 of tab group 1 of splitter group 1 of window 1 | |
end tell | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment