Skip to content

Instantly share code, notes, and snippets.

@OKsign
Created August 21, 2022 14:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save OKsign/cc362a2a834d254a8d4254444ca4561a to your computer and use it in GitHub Desktop.
Save OKsign/cc362a2a834d254a8d4254444ca4561a to your computer and use it in GitHub Desktop.
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