Created
August 9, 2021 13:16
-
-
Save tmanternach/d27c3e015acdd3b7dffe35180e8ba14e to your computer and use it in GitHub Desktop.
Use Jump Desktop to Quick Connect to clipboard item
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 "Dock" | |
activate | |
end tell | |
tell application "System Events" | |
tell process "Dock" | |
set frontmost to true | |
activate | |
tell list 1 | |
perform action "AXShowMenu" of UI element "Jump Desktop" | |
delay 0.2 | |
repeat 7 times | |
key code 126 | |
end repeat | |
delay 0.5 | |
key code 36 | |
delay 0.5 | |
tell application "System Events" to keystroke "v" using command down | |
delay 0.5 | |
repeat 2 times | |
key code 36 | |
end repeat | |
end tell | |
end tell | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment