• 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
path to frontmost application: bug in AS 1.9.3?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

path to frontmost application: bug in AS 1.9.3?


  • Subject: path to frontmost application: bug in AS 1.9.3?
  • From: Donald Hall <email@hidden>
  • Date: Fri, 1 Oct 2004 00:11:24 -0600

Title: path to frontmost application: bug in AS 1.9.3?
I have a script with an idle handler containing the following statement:

        set frontProc to name of (info for (path to frontmost application))

In AS 1.9.3, OS 10.3.5, when the screen saver is running this statement does not give the expected result of "ScreenSaverEngine", but rather the name of the application that was frontmost just prior to the screen saver starting. In Jaguar the statement gave the expected result.

In Panther if instead of the above statement I use:

tell application "Finder" to set frontProc to name of every process whose frontmost is true

frontProc is set to "ScreenSaverEngine" as expected.

Is this a bug or a feature?

Is there a time penalty for using the Finder, or is there another way to get the name of the frontmost application?

Thanks for any insights,

Don

--
Donald S. Hall, Ph.D.
Apps & More Software Design, Inc.
email@hidden
http://www.appsandmore.com
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: path to frontmost application: bug in AS 1.9.3?
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: RE: Scripting QuarkXPress Books
  • Next by Date: Re: Get Name of Current Script?
  • Previous by thread: RE: Scripting QuarkXPress Books
  • Next by thread: Re: path to frontmost application: bug in AS 1.9.3?
  • Index(es):
    • Date
    • Thread