Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on alfred_script(q)
- tell application "System Events"
- set frontmostProcess to first process where it is frontmost
- keystroke tab using command down
- set mcount to 0
- repeat while (frontmostProcess is frontmost) and ((mcount) < 5)
- delay 0.2
- set mcount to mcount + 1
- end repeat
- set secondFrontmost to name of first process where it is frontmost
- keystroke tab using command down
- set mcount to 0
- repeat while (process secondFrontmost is frontmost) and ((mcount) < 5)
- delay 0.2
- set mcount to mcount + 1
- end repeat
- perform action "AXRaise" of window 1 of process secondFrontmost
- end tell
- end alfred_script
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement