I want to make my window to the frontmost -1. I have an application that activates Safari to run a JavaScript once every two minutes when I've been away from my computer for more than 30 minutes. However, when the script is done I want Safari to go frontmost -1. So that the same window is frontmost as it was when I left my computer.
I know that I can just hide or minimize my Safari window, but that's not what I want :-) Any ideas?
Rather than having Safari go frontmost minus 1, what you could do is make whatever the previous app was become frontmost. Since Safari is currently frontmost, this will make Safari frontmost minus 1.
Here is an app that will remember the name of the current active app, activate Safari, and then return to the previous active app.