Switching Processes - Previous and Next
Switching Processes - Previous and Next
- Subject: Switching Processes - Previous and Next
- From: Matt Petrowsky <email@hidden>
- Date: Wed, 28 Jul 2004 15:42:53 -0700
This one has been perplexing me for a little while. I think I need a
bit of help.
Goal: To move to the previous application, such as using Cmd-Tab or
Cmd-Shft-Tab, based on the frontmost application.
So far, it seems that System Events does not use the same 'usage order'
that the Dock (Application Switcher?) is using. Anyone know how to move
to the previous application using AS? So far this is what I have but
this is not the proper code because it doesn't respect the usage order.
tell application "System Events"
set allProcs to processes -- all process objects (in dock order?)
set inFront to name of (every process whose frontmost is true)
set topApp to item 1 of inFront
set prevApp to process before process named topApp
end tell
Matt Petrowsky
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.