Created
August 21, 2022 14:52
-
-
Save OKsign/cc362a2a834d254a8d4254444ca4561a to your computer and use it in GitHub Desktop.
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
tell application "Flux" to launch | |
delay 2 | |
tell application "System Events" | |
set inviApps to (get name of every application process whose visible is false) | |
end tell | |
repeat until "Flux" is in inviApps | |
delay 1 | |
tell application "System Events" | |
set inviApps to (get name of every application process whose visible is false) | |
end tell | |
end repeat | |
delay 1 | |
repeat until "System Events" is in inviApps | |
delay 1 | |
tell application "System Events" | |
set inviApps to (get name of every application process whose visible is false) | |
end tell | |
end repeat | |
delay 3 | |
tell application "System Events" | |
set frontmost of process "Flux" to true | |
delay 0.7 | |
keystroke "w" using command down | |
delay 1 | |
key code 36 | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment