path to frontmost application: bug in AS 1.9.3?
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