• 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
Determining the 'nextmost' process...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Determining the 'nextmost' process...


  • Subject: Determining the 'nextmost' process...
  • From: Peter Bunn <email@hidden>
  • Date: Fri, 1 Nov 2002 10:28:04 -0600

Hello:

This has probably been patiently answered lebenty-leben times already,
but...

Is there a way - once a script (application) process has been launched
from a given 'frontmost' app - for the script to determine what that
(immediately previous) frontmost process was?

In this peculiar instance, a script _application_ must be used. (Though
I don't even know if an osas script, run from a menu, would avoid the
problem).

As a specific example, I want to run a script on a particular window of
another app, but I want the app to list windows first. Once the script
becomes the frontmost app, how can it determine which was the 'nextmost'
process?

There is an added dimension to the problem... I can filter the active
processes for _one_ process and tell it to do something, but I'm trying
to make a certain script 'universal' to/for several applications... any
one of which might have been the 'nextmost'.

As it stands, the script asks the user to choose from a list of the
possible applications as having been the frontmost... which is more than
a little clunky.

It's all a bit difficult to explain... I hope someone has an idea what
I'm shooting for.

Thanks much for any help.

Peter B.

OS 8.6 / AS 1.3.7

-----
_______________________________________________
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: Determining the 'nextmost' process...
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: RE: URL Access Scripting Problem
  • Next by Date: Distributing 'recreatored' script apps...
  • Previous by thread: Re: Scripting MS Word "Save As"
  • Next by thread: Re: Determining the 'nextmost' process...
  • Index(es):
    • Date
    • Thread