Activate last active application?

I am wondering if there is a way for applescript to activate the last active application. So if I was using Mail then switch to Safari the script would take you back to Mail.

Thanks for any help.

London

Hello

I think this thread are answering what you are looking for.

Hi,

“script” the application switcher


tell application "System Events" to keystroke tab using command down

Hello.

That is so neat Stefan! :wink: (At least as long as the user knows what is going on, that is, it is the user who initiated the execution of the script. And I believe that to be the case here).

Edit 13/08/12 I have found another way to do this that works Here!