Re: Window title of frontmost application
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.