Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > AppleScript OS9 get previous active application

AppleScript OS9 get previous active application
Thread Tools
Fresh-Faced Recruit
Join Date: Oct 2005
Location: Moscow
Status: Offline
Reply With Quote
Oct 15, 2005, 12:55 PM
 
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
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:39 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2