• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Switching Processes - Previous and Next
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Switching Processes - Previous and Next
      • From: Walter Ian Kaye <email@hidden>
  • Prev by Date: Re: Property Lists <integer> tags being writing as <real>
  • Next by Date: Re: Property Lists <integer> tags being writing as <real>
  • Previous by thread: Re: advanced safari work....
  • Next by thread: Re: Switching Processes - Previous and Next
  • Index(es):
    • Date
    • Thread