Re: Name of Active Process, part 2
Re: Name of Active Process, part 2
- Subject: Re: Name of Active Process, part 2
- From: David Andrews <email@hidden>
- Date: Wed, 16 Jun 2004 22:37:04 -0400
On second thought, I now see what you are saying, and that is, if some
other (not displayed) process is active, then we end up stuck in
RealOne Player and do not return to the original displayed application.
So your suggestion is probably better, except I get
"the process
"
instead of
"the process"
So I think I'll now go with the following (unless you can tell me
something about having the "return" in there):
tell application "Finder" to set frontProcess to (displayed name of
(path to frontmost application))
On Jun 16, 2004, at 12:11 AM, Joseph Weaks wrote:
I recommend:
tell application "Finder" to set frontProcess to ((displayed name of
(path to frontmost application)) & return)
Because these two fail in some circumstances, such as when launched
from the Script Menu:
--tell application "Finder" to set frontProcess to (frontProcess &
(name of every process whose frontmost is true) & return)
--tell application "System Events" to set frontProcess to
(frontProcess & (name of every process whose frontmost is true))
Joe Weaks
[snip]
_______________________________________________
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.