• 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
Re: Window title of frontmost application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Window title of frontmost application


  • Subject: Re: Window title of frontmost application
  • From: David Crowe <email@hidden>
  • Date: Sat, 26 Apr 2003 19:45:14 -0600

Getting the frontmost application is easy:

on GetFrontmostApp()
tell application "Finder"
return (name of (every process whose frontmost is
true) as string)
end tell
end GetFrontmostApp

(System Events is probably better on OS X, but not portable to OS 9,
if that matters).

The hard part is getting the frontmost window. Note that Acrobat
doesn't support the window object (you have to use PDF Window
instead) and Adobe FrameMaker as well. Explorer supports the window
object, but hardly any useful elements (just the URL and the title if
I remember rightly, not even the bounds).

- David Crowe
_______________________________________________
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.

  • Prev by Date: Re: Executing an AppleScript on a networked computer
  • Next by Date: Running an Acrobat Batch, & move file of type?
  • Previous by thread: Re: Window title of frontmost application
  • Next by thread: Window title of frontmost application
  • Index(es):
    • Date
    • Thread