Tuesday, September 29, 2020

#1 2010-07-29 12:58:45 pm

londonbizzare
Member
Registered: 2006-03-16
Posts: 51

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

Last edited by londonbizzare (2013-05-16 10:15:54 pm)

Offline

 

#2 2010-07-29 01:03:58 pm

McUsr
Member
From:: Southern Norway
Registered: 2010-04-07
Posts: 1776

Re: Activate last active application?

Hello

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


Mercurial vcs is a joy to use for scripting.


Filed under: frontmost app

Offline

 

#3 2010-07-29 01:04:34 pm

StefanK
Member
From:: St. Gallen, Switzerland
Registered: 2006-10-21
Posts: 11697
Website

Re: Activate last active application?

Hi,

"script" the application switcher

Applescript:


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

Last edited by StefanK (2010-07-29 01:04:46 pm)


regards

Stefan

Offline

 

#4 2010-07-29 01:10:21 pm

McUsr
Member
From:: Southern Norway
Registered: 2010-04-07
Posts: 1776

Re: Activate last active application?

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!

Last edited by McUsr (2012-08-13 08:42:16 am)


Mercurial vcs is a joy to use for scripting.


Filed under: switch app

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)