Re: Process whose frontmost *was* true?
Re: Process whose frontmost *was* true?
- Subject: Re: Process whose frontmost *was* true?
- From: Joseph Weaks <email@hidden>
- Date: Thu, 27 May 2004 14:21:53 -0500
However,
tell application "Finder" or "System Event" to set frontProcess to
every process whose frontmost is true
is not reliable. Consider this script when run from the Applescript
menu:
tell application "Finder" to get (displayed name of (path to frontmost
application))
-- Smile (or whatever app was in the front)
tell application "Finder" to get (name of every process whose frontmost
is true)
-- System Events
tell application "System Events" to get (name of every process whose
frontmost is true)
-- System Events
Hence, I'd suggest using the first example.
Cheers,
Joe Weaks
_______________________________________________
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.