Use frontmost application instead of running application.