Excuse me, i don't speak english.
I write Script and save as application
I use this script (application): launch of hotkey.
My problem:
get frontmost process-> "My script is frontmost!"
I have get current application previous of (keypressed of hotkey)
i used:
tell app "Finder"
set lst to processes
choose from list lst
end tell
This is sorted process to (launch time)
How sorted process to (activate time) and get (-2) of list process?
analog:
tell app "Finder"
set lst to name of windows
end tell
it is sorted of ("activate" time); it is window only
