• 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
Getting front app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting front app


  • Subject: Getting front app
  • From: Phil Calvert <email@hidden>
  • Date: Tue, 31 Jul 2001 08:05:12 -0700

Hi List,

I'm trying to get the finder to tell me what application is at the front
(and is not a faceless background app). This is what I came up with.


tell application "Finder"
set ActiveApp to name of front application process whose visible is true
end tell

I'm launching it from a F-key. At first, I thought this was working but I
now notice that it only works with some applications but not others. Is
there a better way I can tell the faceless background apps from the regular
ones?

TIA,

Phil

(Using and ibook and system 9.1)


  • Follow-Ups:
    • Re: Getting front app
      • From: Jon Pugh <email@hidden>
  • Prev by Date: Re: creator codes
  • Next by Date: Script Applet rejects first handler call
  • Previous by thread: Acrobat 5, Save as PDF?
  • Next by thread: Re: Getting front app
  • Index(es):
    • Date
    • Thread